pr81899.C: Fix c++03.
authorNathan Sidwell <nathan@acm.org>
Mon, 21 Aug 2017 17:06:26 +0000 (17:06 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 21 Aug 2017 17:06:26 +0000 (17:06 +0000)
* g++.dg/template/pr81899.C: Fix c++03.
* g++.dg/debug/debug9.C: Add -fno-reorder-blocks-and-partition"

From-SVN: r251240

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/debug9.C
gcc/testsuite/g++.dg/template/pr81899.C

index 48f041e..b3466cd 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-21  Nathan Sidwell  <nathan@acm.org>
+
+       * g++.dg/template/pr81899.C: Fix c++03.
+       * g++.dg/debug/debug9.C: Add -fno-reorder-blocks-and-partition"
+
 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
 
        * gcc.dg/format/diagnostic-ranges.c (test_mismatching_types):
index aa328ee..8cf2327 100644 (file)
@@ -1,4 +1,9 @@
 /* { dg-do assemble } */
+/* Partitioning causes hot/cold section emission and breaks stabs
+   debugging.  */
+/* { dg-additional-options "-fno-reorder-blocks-and-partition" } */
+
+
 /* This testcase requires entries in the debug_range section in DWARF which
    refer to a vague linkage function.  */
 
index 2db57cf..317a046 100644 (file)
@@ -2,7 +2,7 @@
 
 template <template <typename> class FunctorData>
 struct functor {
-  friend FunctorData<int>;
+  friend class FunctorData<int>;
   void foo();
 };