This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81314] [6/7/8 Regression] Undefined reference to a function with -fopenmp
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Sep 2017 21:42:51 +0000
- Subject: [Bug c++/81314] [6/7/8 Regression] Undefined reference to a function with -fopenmp
- Auto-submitted: auto-generated
- References: <bug-81314-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81314
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 15 21:42:20 2017
New Revision: 252864
URL: https://gcc.gnu.org/viewcvs?rev=252864&root=gcc&view=rev
Log:
Backported from mainline
2017-09-14 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.c++/pr81314.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/cp-gimplify.c
branches/gcc-6-branch/libgomp/ChangeLog