[Bug c/47963] [4.5 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 Apr 7 18:27:00 GMT 2011


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-07 18:27:24 UTC ---
Author: jakub
Date: Thu Apr  7 18:27:20 2011
New Revision: 172115

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172115
Log:
    Backported from mainline
    2011-03-03  Jakub Jelinek  <jakub@redhat.com>

    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:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/gomp/pr47963.C
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/gomp/pr47963.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/gimplify.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list