This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/53924] unhelpful diagnostic in invalid declaration list


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53924

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-07-13 10:29:26 UTC ---
Clang:

/tmp/webcompile/_2902_0.c:2:13: error: redefinition of 'tree' as different kind
of symbol
tree klass, tree cdecl, class_array_type;
            ^
/tmp/webcompile/_2902_0.c:1:15: note: previous definition is here
typedef void *tree;
              ^
/tmp/webcompile/_2902_0.c:2:17: error: expected ';' after top level declarator
tree klass, tree cdecl, class_array_type;
                ^
                ;
2 errors generated.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]