This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Apr 2011 18:27:38 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-47963-4@http.gcc.gnu.org/bugzilla/>
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