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

           Summary: [4.5/4.6 Regression] ICE: tree check: expected tree
                    that contains 'decl common' structure, have
                    'integer_cst' in is_global_var, at
                    tree-flow-inline.h:599 on invalid code with -fopenmp
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


Created attachment 23519
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23519
reduced testcase

Compiler output:
$ gcc -fopenmp testcase.c
testcase.c: In function 'foo':
testcase.c:3:7: error: size of array 'A' has non-integer type
testcase.c:3:7: error: size of array 'A' has non-integer type
testcase.c:4:9: internal compiler error: tree check: expected tree that
contains 'decl common' structure, have 'integer_cst' in is_global_var, at
tree-flow-inline.h:599
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r170594 - crash
4.5 r170013 - crash
4.4 r170013 - OK

Reply via email to