re PR c++/47488 (sorry, unimplemented: string literal in function template signature)

PR c++/47488
	* mangle.c (write_template_arg_literal) [STRING_CST]: Sorry.

From-SVN: r170783
This commit is contained in:
Jason Merrill 2011-03-08 12:30:46 -05:00 committed by Jason Merrill
parent 8c0672ff88
commit db68a2cbf7
2 changed files with 7 additions and 0 deletions

View 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.

View 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 ();
}