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 48f041e082830d37c9e732b15695de3b153fa149..b3466cdf7af4f8e5fd81f460e6a313e521ba54d8 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 aa328ee6f79abe7ead17bd06fb1a793f91d68aeb..8cf2327e0693d982a13ad60a5367ef80224a34a1 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 2db57cf75040bae7386ccac6181e78226f0d5635..317a0468466f225cebe36e97216ec09add9235a1 100644 (file)
@@ -2,7 +2,7 @@
 
 template <template <typename> class FunctorData>
 struct functor {
-  friend FunctorData<int>;
+  friend class FunctorData<int>;
   void foo();
 };