[LLVMbugs] [Bug 2403] crash on invalid typedef declarations

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jul 25 22:13:19 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2403


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Chris Lattner <clattner at apple.com>  2008-07-26 00:13:18 ---
This works now:

t.c:3:1: error: cannot combine with previous 'typedef' declaration specifier
typedef __builtin_va_list __gnuc_va_list;int a() { return ({L:5;}); }
^
t.c:3:9: error: typedef redefinition with different types ('struct <anonymous>'
vs 'char *')
typedef __builtin_va_list __gnuc_va_list;int a() { return ({L:5;}); }
        ^
<predefines>:4:15: error: previous definition is here
typedef char* __builtin_va_list;
              ^
t.c:3:27: error: parse error
typedef __builtin_va_list __gnuc_va_list;int a() { return ({L:5;}); }
                          ^
t.c:3:52: error: incompatible type returning 'void', expected 'int'
typedef __builtin_va_list __gnuc_va_list;int a() { return ({L:5;}); }
                                                   ^      ~~~~~~~~


-- 
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