[Bug c/47963] [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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 3 16:10:00 GMT 2011


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-03 16:09:59 UTC ---
Author: jakub
Date: Thu Mar  3 16:09:55 2011
New Revision: 170655

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170655
Log:
    PR c/47963
    * gimplify.c (omp_add_variable): Only call omp_notice_variable
    on TYPE_SIZE_UNIT if it is a DECL.

    * gcc.dg/gomp/pr47963.c: New test.
    * g++.dg/gomp/pr47963.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr47963.C
    trunk/gcc/testsuite/gcc.dg/gomp/pr47963.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list