re PR c++/81314 (Undefined reference to a function with -fopenmp)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Sep 2017 20:18:17 +0000 (22:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Sep 2017 20:18:17 +0000 (22:18 +0200)
commit8b5865104c57edfc56c5a10bcbcdbaf8b527658f
tree3d7d0e0c7d54b8b34774a1e25e74a48dc3f235e1
parent595ced60609a353b91face2f87b6f7abe3eaf28c
re PR c++/81314 (Undefined reference to a function with -fopenmp)

PR c++/81314
* cp-gimplify.c (omp_var_to_track): Look through references.
(omp_cxx_notice_variable): Likewise.

* testsuite/libgomp.c++/pr81314.C: New test.

From-SVN: r252770
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr81314.C [new file with mode: 0644]