[Bug c/10981] New: ICE with undeclared variable in any_external_decl at c-decl.c:1553

ehrhardt@mathematik.uni-ulm.de gcc-bugzilla@gcc.gnu.org
Mon May 26 13:53:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE with undeclared variable in any_external_decl at c-
                    decl.c:1553
           Product: gcc
           Version: 3.4
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ehrhardt@mathematik.uni-ulm.de
                CC: gcc-bugs@gcc.gnu.org

This piece of legal code gives an ICE with 3.4. This is a regression from 3.3:
--------- cut --------
int x = y ;
int y ;
--------- cut --------
reduce.3797.out:1: error: `y' undeclared here (not in a function)
reduce.3797.out:2: internal compiler error: tree check: expected class 'd', have 'x' (error_mark) in any_external_decl, at c-decl.c:1553
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list