re PR c/47963 (ICE: tree check: expected tree that contains 'decl common' structure...
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Mar 2011 16:09:55 +0000 (17:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Mar 2011 16:09:55 +0000 (17:09 +0100)
commit423ed4163b160e8fa81758ed53e54c60040f3c0f
tree0f811ce7e5a3fe13add75d303194536c46f30e87
parent71f3a3f5171d29dc3625fa7556c5732aa6b26241
re PR c/47963 (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)

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.

From-SVN: r170655
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr47963.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr47963.c [new file with mode: 0644]