re PR c++/47488 (sorry, unimplemented: string literal in function template signature)
authorJason Merrill <jason@redhat.com>
Tue, 8 Mar 2011 17:30:46 +0000 (12:30 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 8 Mar 2011 17:30:46 +0000 (12:30 -0500)
PR c++/47488
* mangle.c (write_template_arg_literal) [STRING_CST]: Sorry.

From-SVN: r170783

gcc/cp/ChangeLog
gcc/cp/mangle.c

index e99a53a67c33ad6df62be91c26ed2102c4420259..ab0d3b4b56592f57bee4df2208a84825eeefb3a4 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-08  Jason Merrill  <jason@redhat.com>
 
+       PR c++/47488
+       * mangle.c (write_template_arg_literal) [STRING_CST]: Sorry.
+
        PR c++/47705
        * pt.c (convert_nontype_argument): Don't crash on non-pointer
        argument to pointer parameter.
index c46ba305def371ae6acddbac7982f059821f95fb..f063d474d4b9f10e25d46c846db331ceaa7fc9ca 100644 (file)
@@ -2764,6 +2764,10 @@ write_template_arg_literal (const tree value)
       write_real_cst (value);
       break;
 
+    case STRING_CST:
+      sorry ("string literal in function template signature");
+      break;
+
     default:
       gcc_unreachable ();
     }