This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17424] New: [4.0 regression] ICE with sizeof an undeclared variable
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2004 23:56:12 -0000
- Subject: [Bug c/17424] New: [4.0 regression] ICE with sizeof an undeclared variable
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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