aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-12-19 13:58:32 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2007-12-19 13:58:32 +0100
commit5259c813103b272f141eb5aafc5e473301d58760 (patch)
tree218084fab0c5c9054f254323159ee54c135a9e9c /gcc
parent5141868dc037e51930341c5508036d5325c07739 (diff)
downloadgcc-5259c813103b272f141eb5aafc5e473301d58760.zip
gcc-5259c813103b272f141eb5aafc5e473301d58760.tar.gz
gcc-5259c813103b272f141eb5aafc5e473301d58760.tar.bz2
re PR c++/34513 (static variable not found for C++ OpenMP)
PR c++/34513 * parser.c (cp_parser_omp_parallel): For non-combined parallel call cp_parser_statement rather than cp_parser_already_scoped_statement. * testsuite/libgomp.c/pr34513.c: New test. * testsuite/libgomp.c++/pr34513.C: New test. From-SVN: r131059
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/parser.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c7f0fc4..39eb736c5b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/34513
+ * parser.c (cp_parser_omp_parallel): For non-combined parallel
+ call cp_parser_statement rather than
+ cp_parser_already_scoped_statement.
+
2007-12-18 Jason Merrill <jason@redhat.com>
PR c++/34206
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index f3d4ce2..d592620 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -20271,7 +20271,7 @@ cp_parser_omp_parallel (cp_parser *parser, cp_token *pragma_tok)
switch (p_kind)
{
case PRAGMA_OMP_PARALLEL:
- cp_parser_already_scoped_statement (parser);
+ cp_parser_statement (parser, NULL_TREE, false, NULL);
par_clause = clauses;
break;