Commit 84ffba12 by David Malcolm Committed by David Malcolm

pt.c: add missing %< and %>

gcc/cp/ChangeLog:
	* pt.c (listify): Use %< and %> for description of #include.

gcc/testsuite/ChangeLog:
	* g++.dg/cpp0x/auto21.C: Update dg-error to reflect addition of
	quotes.
	* g++.dg/cpp0x/missing-initializer_list-include.C: Likewise.

From-SVN: r254281
parent 64a5912c
2017-10-31 David Malcolm <dmalcolm@redhat.com> 2017-10-31 David Malcolm <dmalcolm@redhat.com>
* pt.c (listify): Use %< and %> for description of #include.
2017-10-31 David Malcolm <dmalcolm@redhat.com>
* class.c (explain_non_literal_class): Use UNKNOWN_LOCATION rather * class.c (explain_non_literal_class): Use UNKNOWN_LOCATION rather
than 0. than 0.
* name-lookup.c (suggest_alternatives_for): Update for renaming of * name-lookup.c (suggest_alternatives_for): Update for renaming of
......
...@@ -25132,7 +25132,7 @@ listify (tree arg) ...@@ -25132,7 +25132,7 @@ listify (tree arg)
maybe_add_include_fixit (&richloc, "<initializer_list>"); maybe_add_include_fixit (&richloc, "<initializer_list>");
error_at (&richloc, error_at (&richloc,
"deducing from brace-enclosed initializer list" "deducing from brace-enclosed initializer list"
" requires #include <initializer_list>"); " requires %<#include <initializer_list>%>");
return error_mark_node; return error_mark_node;
} }
......
2017-10-31 David Malcolm <dmalcolm@redhat.com> 2017-10-31 David Malcolm <dmalcolm@redhat.com>
* g++.dg/cpp0x/auto21.C: Update dg-error to reflect addition of
quotes.
* g++.dg/cpp0x/missing-initializer_list-include.C: Likewise.
2017-10-31 David Malcolm <dmalcolm@redhat.com>
* gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree): Update * gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree): Update
for renaming of error_at_rich_loc and inform_at_rich_loc. for renaming of error_at_rich_loc and inform_at_rich_loc.
* gcc.dg/plugin/diagnostic_plugin_test_show_locus.c * gcc.dg/plugin/diagnostic_plugin_test_show_locus.c
......
// Origin PR c++/47208 // Origin PR c++/47208
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
constexpr auto list = { }; // { dg-error "deducing from brace-enclosed initializer list requires #include <initializer_list>" } constexpr auto list = { }; // { dg-error "deducing from brace-enclosed initializer list requires '#include <initializer_list>'" }
static const int l = list.size(); static const int l = list.size();
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
void test (int i) void test (int i)
{ {
auto a = { &i }; // { dg-error "deducing from brace-enclosed initializer list requires #include <initializer_list>" } auto a = { &i }; // { dg-error "deducing from brace-enclosed initializer list requires '#include <initializer_list>'" }
} }
/* Verify the output from -fdiagnostics-generate-patch. /* Verify the output from -fdiagnostics-generate-patch.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment