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/42538] New: ICE on illegal-code: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7369


seen on 4.2, 4.3, 4.4, 4.5 (not checked earlier versions):

$ gzip -9v ~/main.i 
$ gcc-4.4 main.i 
/home/vladimir/Documents/Sondage/main.c:12: error: declaration of 'Saisie' as
array of voids
/home/vladimir/Documents/Sondage/main.c:12: error: return type is an incomplete
type
/home/vladimir/Documents/Sondage/main.c: In function 'Saisie':
/home/vladimir/Documents/Sondage/main.c:12: error: expected declaration
specifiers before ')' token
/home/vladimir/Documents/Sondage/main.c:31: error: expected declaration
specifiers before 'main'
/home/vladimir/Documents/Sondage/main.c:34: confused by earlier errors, bailing
out
Preprocessed source stored into /tmp/ccOvpYVY.out file, please attach this to
your bugreport.

$ /usr/lib/gcc-snapshot/bin/gcc main.i 
/home/vladimir/Documents/Sondage/main.c:12:6: error: declaration of 'Saisie' as
array of voids
/home/vladimir/Documents/Sondage/main.c:12:1: internal compiler error: tree
check: expected function_decl, have var_decl in start_function, at
c-decl.c:7369
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
           Summary: ICE on illegal-code: tree check: expected function_decl,
                    have var_decl in start_function, at c-decl.c:7369
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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