Blame SOURCES/compat-libstdc++33-cxa_demangle-ambiguity.patch

727081
2005-02-15  Jakub Jelinek  <jakub@redhat.com>
727081
727081
	PR libstdc++/19946
727081
	* testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
727081
	demangler change.
727081
	* testsuite/demangle/abi_examples/02.cc (main): Likewise.
727081
727081
--- libstdc++33-v3/testsuite/demangle/abi_examples/01.cc.jj	2004-03-09 16:09:24.000000000 +0100
727081
+++ libstdc++33-v3/testsuite/demangle/abi_examples/01.cc	2005-02-14 09:05:09.383834357 +0100
727081
@@ -1,6 +1,6 @@
727081
 // 2003-02-26 Benjamin Kosnik <bkoz@redhat.com>
727081
 
727081
-// Copyright (C) 2003 Free Software Foundation, Inc.
727081
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
727081
 //
727081
 // This file is part of the GNU ISO C++ Library.  This library is free
727081
 // software; you can redistribute it and/or modify it under the
727081
@@ -31,7 +31,9 @@ int main()
727081
   // extern "C" function 
727081
   // extern "C" float f(void) { };
727081
   // T f
727081
-  verify_demangle("f", "error code = -2: invalid mangled name");
727081
+  // f is ambiguous between "C" external name and internal built-in type
727081
+  // name.  The ambiguity is resolved to the built-in type name.
727081
+  verify_demangle("f", "float");
727081
 
727081
   return 0;
727081
 }
727081
--- libstdc++33-v3/testsuite/demangle/abi_examples/02.cc.jj	2004-03-09 16:09:24.000000000 +0100
727081
+++ libstdc++33-v3/testsuite/demangle/abi_examples/02.cc	2005-02-14 09:05:59.661857808 +0100
727081
@@ -1,6 +1,6 @@
727081
 // 2003-02-26 Benjamin Kosnik <bkoz@redhat.com>
727081
 
727081
-// Copyright (C) 2003 Free Software Foundation, Inc.
727081
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
727081
 //
727081
 // This file is part of the GNU ISO C++ Library.  This library is free
727081
 // software; you can redistribute it and/or modify it under the
727081
@@ -31,7 +31,9 @@ int main()
727081
   // or variable "f" 
727081
   // int f;
727081
   // B f
727081
-  verify_demangle("f", "error code = -2: invalid mangled name");
727081
+  // f is ambiguous between variable external name and internal built-in type
727081
+  // name.  The ambiguity is resolved to the built-in type name.
727081
+  verify_demangle("f", "float");
727081
 
727081
   return 0;
727081
 }