Fix g++.dg/torture/pr89303.C with Solaris ld
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 18 Feb 2019 20:25:55 +0000 (20:25 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 18 Feb 2019 20:25:55 +0000 (20:25 +0000)
* g++.dg/torture/pr89303.C (bad_weak_ptr): Rename to
bad_weak_ptr_.

From-SVN: r268995

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr89303.C

index 04f60aa0a8924afe416fa023db272a3c2f80dca3..fc03ecd6d9da4f38f8f18128112dad119a2cdbfd 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/torture/pr89303.C (bad_weak_ptr): Rename to
+       bad_weak_ptr_.
+
 2019-02-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/87689
index 94a0f90cd533ba7c92c7bfaab11eda5855d7340d..dbe8d05382e51ddb7aa804abd047154e2a4ad4b2 100644 (file)
@@ -350,11 +350,11 @@ namespace std
       { return static_cast<const _Tp*>(_M_addr()); }
     };
 
-  class bad_weak_ptr { };
+  class bad_weak_ptr_ { };
 
   inline void
   __throw_bad_weak_ptr()
-  { (throw (bad_weak_ptr())); }
+  { (throw (bad_weak_ptr_())); }
 
     class _Sp_counted_base
     {