re PR c/35751 (ICE with invalid variable after #pragma omp parallel)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Apr 2008 15:09:42 +0000 (17:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Apr 2008 15:09:42 +0000 (17:09 +0200)
commitb97d81535d07cfb6d1275f9c83d88af0dec96cd0
tree4c40e08625acb5638671b72992b7c2e32dd985b5
parent4d6baa57a4398c6cebf196780553cfd9de953e2f
re PR c/35751 (ICE with invalid variable after #pragma omp parallel)

PR c/35751
* c-decl.c (finish_decl): If extern or static var has variable
size, set TREE_TYPE (decl) to error_mark_node.

* decl.c (layout_var_decl): If extern or static var has variable
size, set TREE_TYPE (decl) to error_mark_node.

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

From-SVN: r134317
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr35751.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr35751.c [new file with mode: 0644]