From db68a2cbf7c1a12455dd1a59012985020f700424 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 8 Mar 2011 12:30:46 -0500 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/mangle.c | 4 ++++ 2 files changed, 7 insertions(+) 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 (); } -- 2.30.2