re PR c++/63248 (Crash when OpenMP target's array section handling is used with templ...
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Sep 2014 16:43:28 +0000 (18:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 18 Sep 2014 16:43:28 +0000 (18:43 +0200)
commitbce16b887fcdc5db5e00ffaae92b4e4b5c0fdeca
tree29355c71634ce536e2f8aaf0e6ebc5adb9ec9423
parent74c101d5fd4ebf45d9127efd82e1325882e48a12
re PR c++/63248 (Crash when OpenMP target's array section handling is used with templates)

PR c++/63248
* semantics.c (finish_omp_clauses): Don't call cp_omp_mappable_type
on type of type dependent expressions, and don't call it if
handle_omp_array_sections has kept TREE_LIST because something
was type dependent.
* pt.c (tsubst_expr) <case OMP_TARGET, case OMP_TARGET_DATA>:
Use keep_next_level, begin_omp_structured_block and
finish_omp_structured_block instead of push_stmt_list and
pop_stmt_list.
libgomp/
* testsuite/libgomp.c++/pr63248.C: New test.

From-SVN: r215359
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr63248.C [new file with mode: 0644]