PR c++/59627
* parser.c (cp_parser_omp_declare_reduction): Set assembler name
of the DECL_OMP_DECLARE_REDUCTION_P decls.
* g++.dg/gomp/pr59627.C: New test.
From-SVN: r233225
+2016-02-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/59627
+ * parser.c (cp_parser_omp_declare_reduction): Set assembler name
+ of the DECL_OMP_DECLARE_REDUCTION_P decls.
+
2016-02-08 Marek Polacek <polacek@redhat.com>
PR c++/69688
DECL_DECLARED_INLINE_P (fndecl) = 1;
DECL_IGNORED_P (fndecl) = 1;
DECL_OMP_DECLARE_REDUCTION_P (fndecl) = 1;
+ SET_DECL_ASSEMBLER_NAME (fndecl, get_identifier ("<udr>"));
DECL_ATTRIBUTES (fndecl)
= tree_cons (get_identifier ("gnu_inline"), NULL_TREE,
DECL_ATTRIBUTES (fndecl));
2016-02-08 Jakub Jelinek <jakub@redhat.com>
+ PR c++/59627
+ * g++.dg/gomp/pr59627.C: New test.
+
PR ipa/69239
* g++.dg/ipa/pr69239.C: New test.
--- /dev/null
+// PR c++/59627
+// { dg-do compile { target lto } }
+// { dg-options "-fopenmp -flto" }
+
+struct A { A () : i (0) {} int i; };
+
+void
+foo ()
+{
+ A a;
+ #pragma omp declare reduction (+: A: omp_out.i += omp_in.i)
+ #pragma omp parallel reduction (+: a)
+ ;
+}