aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/typeck2.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2015-11-05 16:47:40 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2015-11-05 16:47:40 +0000
commit7e4756e8438892aa362d846c83b91329a904e904 (patch)
treef650af3ebe02259fe837100de2ea8b3a787ea36e /gcc/cp/typeck2.c
parent451e8dae5dac91d6e3c4d835630d9a8fb4a52cc9 (diff)
downloadgcc-7e4756e8438892aa362d846c83b91329a904e904.zip
gcc-7e4756e8438892aa362d846c83b91329a904e904.tar.gz
gcc-7e4756e8438892aa362d846c83b91329a904e904.tar.bz2
re PR c++/67846 (ICE on code with lambda expression on x86_64-linux-gnu in check_return_expr, at cp/typeck.c:8609)
/cp 2015-11-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/67846 * parser.c (cp_parser_lambda_body): Check lambda_return_type return value. * typeck2.c (cxx_incomplete_type_diagnostic): Print member or member function used invalidly. /testsuite 2015-11-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/67846 * g++.dg/cpp0x/lambda/lambda-ice15.C: New. From-SVN: r229819
Diffstat (limited to 'gcc/cp/typeck2.c')
-rw-r--r--gcc/cp/typeck2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index 000f5e3..e73ea13 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -516,12 +516,12 @@ cxx_incomplete_type_diagnostic (const_tree value, const_tree type,
if (DECL_FUNCTION_MEMBER_P (member)
&& ! flag_ms_extensions)
emit_diagnostic (diag_kind, input_location, 0,
- "invalid use of member function "
- "(did you forget the %<()%> ?)");
+ "invalid use of member function %qD "
+ "(did you forget the %<()%> ?)", member);
else
emit_diagnostic (diag_kind, input_location, 0,
- "invalid use of member "
- "(did you forget the %<&%> ?)");
+ "invalid use of member %qD "
+ "(did you forget the %<&%> ?)", member);
}
break;