diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-12 21:49:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-12 21:49:30 +0000 |
commit | ffaa0e6919b0b369cd1e8009f45127ffe681a5b8 (patch) | |
tree | d2d327869de8a2f973bea43e532898c5e989b6a4 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 14bdb7843057023b1847e37efbd7381a46bf6e5b (diff) | |
download | llvm-ffaa0e6919b0b369cd1e8009f45127ffe681a5b8.zip llvm-ffaa0e6919b0b369cd1e8009f45127ffe681a5b8.tar.gz llvm-ffaa0e6919b0b369cd1e8009f45127ffe681a5b8.tar.bz2 |
Diagnose invalid uses of tagged types with a missing tag. For example, in:
struct xyz { int y; };
enum abc { ZZZ };
static xyz b;
abc c;
we used to produce:
t2.c:4:8: error: unknown type name 'xyz'
static xyz b;
^
t2.c:5:1: error: unknown type name 'abc'
abc c;
^
we now produce:
t2.c:4:8: error: use of tagged type 'xyz' without 'struct' tag
static xyz b;
^
struct
t2.c:5:1: error: use of tagged type 'abc' without 'enum' tag
abc c;
^
enum
GCC produces the normal:
t2.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘b’
t2.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘c’
rdar://6783347
llvm-svn: 68914
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions