[LLVMbugs] [Bug 3963] improve error recovery for mistyped "types"
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Apr 12 13:47:47 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3963
Chris Lattner <clattner at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner <clattner at apple.com> 2009-04-12 15:47:46 ---
In fact, I think that this fixes this whole issue:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090406/015412.html
On:
static foo_t x = 4;
We now produce:
t2.c:1:8: error: unknown type name 'foo_t'
static foo_t x = 4;
^
FWIW, GCC 4.0 produces:
t2.c:1: error: syntax error before ‘x’
t2.c:1: warning: data definition has no type or storage class
And GCC 4.2 produces:
t2.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘x’
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list