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/17424] New: [4.0 regression] ICE with sizeof an undeclared variable


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


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