From: Jason Merrill Date: Tue, 8 Mar 2011 17:30:46 +0000 (-0500) Subject: re PR c++/47488 (sorry, unimplemented: string literal in function template signature) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db68a2cbf7c1a12455dd1a59012985020f700424;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e99a53a67c3..ab0d3b4b565 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-03-08 Jason Merrill + 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. diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index c46ba305def..f063d474d4b 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -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 (); }