diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-12 22:23:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-12 22:23:27 +0000 |
commit | 869c6610c78c2af8ac407a2eed037f68c990be70 (patch) | |
tree | f05c3559798de8db706e335a75b57b24230144f9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 090d34c692824656017562ebb781a889ea281eac (diff) | |
download | llvm-869c6610c78c2af8ac407a2eed037f68c990be70.zip llvm-869c6610c78c2af8ac407a2eed037f68c990be70.tar.gz llvm-869c6610c78c2af8ac407a2eed037f68c990be70.tar.bz2 |
Fix some C++ error recovery problems in init declarator parsing
that I noticed working on other things.
Instead of emitting:
t2.cc:1:8: error: use of undeclared identifier 'g'
int x(*g);
^
t2.cc:1:10: error: expected ')'
int x(*g);
^
t2.cc:1:6: note: to match this '('
int x(*g);
^
We now only emit:
t2.cc:1:7: warning: type specifier missing, defaults to 'int'
int x(*g);
^
Note that the example in SemaCXX/nested-name-spec.cpp:f4 is still
not great, we now produce both of:
void f4(undef::C); // expected-error {{use of undeclared identifier 'undef'}} \
expected-error {{variable has incomplete type 'void'}}
The second diagnostic should be silenced by something getting marked invalid.
I don't plan to fix this though.
llvm-svn: 68919
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions