This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- 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, 3 Mar 2011 16:10:06 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-47963-4@http.gcc.gnu.org/bugzilla/>
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