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/34819] New: incomplete enum's assert


$ cat t.c
enum e ve;

void f0 (int i)
{
 ve + i;
}
$ gcc -c t.c
enum.c: In function ?f0?:
enum.c:6: internal compiler error: in create_tmp_var, at gimplify.c:368
Please submit a full bug report,
with preprocessed source if appropriate.

Works in c++:

/tmp/t.c:1: error: use of enum ?e? without previous declaration
/tmp/t.c:1: error: invalid type in declaration before ?;? token

Also fails in 4.3.0 20070713.


-- 
           Summary: incomplete enum's assert
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrs at apple dot com


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


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