[Bug c++/70353] [5/6 regression] ICE on __PRETTY_FUNCTION__ in a constexpr function

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 28 20:23:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70353

--- Comment #16 from Martin Sebor <msebor at gcc dot gnu.org> ---
I was just about commit the following patch for the failure (false positive) in
the test.

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 234510)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,8 @@
+2016-03-28  Martin Sebor  <msebor@redhat.com>
+
+       * g++.dg/ext/fnname5.C: Adjust ERE pattern to anticipate any
+       whitespace character after the .string assembler directive.
+
 2016-03-28  Dominique d'Humieres  <dominiq@lps.ens.fr>

        g++.dg/ext/fnname5.C: Update the test for Darwin.
Index: gcc/testsuite/g++.dg/ext/fnname5.C
===================================================================
--- gcc/testsuite/g++.dg/ext/fnname5.C  (revision 234510)
+++ gcc/testsuite/g++.dg/ext/fnname5.C  (working copy)
@@ -29,5 +29,5 @@ main ()
 /* { dg-final { scan-assembler-not "_ZZN1A3fooEvE12__FUNCTION__" } } */
 /* { dg-final { scan-assembler-not "_ZZN1A3fooEiE12__FUNCTION__" } } */
 /* { dg-final { scan-assembler-not "_ZZN1A3fooEiE19__PRETTY_FUNCTION__" } } */
-/* { dg-final { scan-assembler ".(string|ascii) \"void A::foo\\(int\\)(.0)?\""
} } */
-/* { dg-final { scan-assembler ".(string|ascii) \"foo(.0)?\"" } } */
+/* { dg-final { scan-assembler ".(string|ascii)\[\[:space:\]\]*\"void
A::foo\\(int\\)(.0)?\"" } } */
+/* { dg-final { scan-assembler ".(string|ascii)\[\[:space:\]\]*\"foo(.0)?\"" }
} */


More information about the Gcc-bugs mailing list