aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-04-26 09:32:27 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2007-04-26 09:32:27 +0200
commit6f7195603e4495155760893afe18ebdf2eb32c47 (patch)
tree83233f4c14ba224f71a2d720e233e2716977bfeb /gcc/tree-inline.c
parente0eb05eaa18608b8aacd94d1c74ceac2ea581191 (diff)
downloadgcc-6f7195603e4495155760893afe18ebdf2eb32c47.zip
gcc-6f7195603e4495155760893afe18ebdf2eb32c47.tar.gz
gcc-6f7195603e4495155760893afe18ebdf2eb32c47.tar.bz2
re PR c++/31598 (g++ does not accept some OpenMP code)
PR c++/31598 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE. * semantics.c (finish_omp_clauses): Don't create CP_OMP_CLAUSE_INFO for type dependent OMP_CLAUSE_DECLs. * g++.dg/gomp/pr31598.C: New test. From-SVN: r124178
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index ff76b75..77d3864 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -731,7 +731,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
(NULL_TREE,
id->eh_region_offset + TREE_INT_CST_LOW (TREE_OPERAND (*tp, 0)));
- if (!GIMPLE_TUPLE_P (*tp))
+ if (!GIMPLE_TUPLE_P (*tp) && TREE_CODE (*tp) != OMP_CLAUSE)
TREE_TYPE (*tp) = remap_type (TREE_TYPE (*tp), id);
/* The copied TARGET_EXPR has never been expanded, even if the