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/35746] [4.3 regression] ICE with undefined variables



------- Comment #6 from aldyh at gcc dot gnu dot org  2008-08-08 23:23 -------
(In reply to comment #5)
> I can still reproduce this on the 4.3 branch as of 2008-08-07.
> On mainline the bug disappeared between 2008-07-29 and 2008-08-02.
> 

I see the error, but there is no longer an ICE.

$ ./cc1 --version
GNU C (GCC) version 4.3.2 20080808 (prerelease) [gcc-4_3-branch revision
138890] (x86_64-unknown-linux-gnu)
$ ./cc1 a.c -O2
 bar
a.c: In function 'bar':
a.c:6: error: 'X' undeclared (first use in this function)
a.c:6: error: (Each undeclared identifier is reported only once
a.c:6: error: for each function it appears in.)
a.c:6: error: expected ';' before 'j'
a.c:8: error: 'j' undeclared (first use in this function)
a.c:8: confused by earlier errors, bailing out

Is this not the expected behavior?


-- 


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


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