diff options
| author | Eric Fiselier <eric@efcs.ca> | 2019-02-01 22:06:02 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2019-02-01 22:06:02 +0000 |
| commit | 1147f71fed863639e3695a8be6979c39397d88b6 (patch) | |
| tree | fa7d7f4ad57310891cadad2ea809660f0623975c /libcxx/src/valarray.cpp | |
| parent | 2e719bc428d27345da7cdcfa634c03ec69f31474 (diff) | |
| download | bcm5719-llvm-1147f71fed863639e3695a8be6979c39397d88b6.tar.gz bcm5719-llvm-1147f71fed863639e3695a8be6979c39397d88b6.zip | |
Improve diagnostic to tell you a type is incomplete.
I recently ran into this code:
```
\#include <iostream>
void foo(const std::string &s, const std::string& = "");
\#include <string>
void test() { foo(""); }
```
The diagnostic produced said it can't bind char[1] to std::string
const&. It didn't mention std::string is incomplete. The user had to
infer that.
This patch causes the diagnostic to now say "incomplete type".
llvm-svn: 352927
Diffstat (limited to 'libcxx/src/valarray.cpp')
0 files changed, 0 insertions, 0 deletions

