[Bug c/17424] New: [4.0 regression] ICE with sizeof an undeclared variable
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 11 23:56:00 GMT 2004
Here's a (symmetric) testcase that crashes mainline:
============================
;int foezis = sizeof tni;
============================
:1:c.c:1: error: 'tni' undeclared here (not in a function)
:1:c.c:1: internal compiler error: tree check: expected class 't', have 'x'
(error_mark) in c_expr_sizeof_expr, at c-typeck.c:1854
Please submit a full bug report, [etc.]
--
Summary: [4.0 regression] ICE with sizeof an undeclared variable
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored, ice-
checking
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: bangerth at dealii dot org,gcc-bugs at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17424
More information about the Gcc-bugs
mailing list