pt.c: add missing %< and %>
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 31 Oct 2017 20:30:51 +0000 (20:30 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 31 Oct 2017 20:30:51 +0000 (20:30 +0000)
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

gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto21.C
gcc/testsuite/g++.dg/cpp0x/missing-initializer_list-include.C

index 4b92622..00ac593 100644 (file)
@@ -1,5 +1,9 @@
 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
        than 0.
        * name-lookup.c (suggest_alternatives_for): Update for renaming of
index f525d22..629b2dd 100644 (file)
@@ -25132,7 +25132,7 @@ listify (tree arg)
       maybe_add_include_fixit (&richloc, "<initializer_list>");
       error_at (&richloc,
                "deducing from brace-enclosed initializer list"
-               " requires #include <initializer_list>");
+               " requires %<#include <initializer_list>%>");
 
       return error_mark_node;
     }
index 42e634d..196c7a1 100644 (file)
@@ -1,5 +1,11 @@
 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
        for renaming of error_at_rich_loc and inform_at_rich_loc.
        * gcc.dg/plugin/diagnostic_plugin_test_show_locus.c
index a827b3d..346e98c 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/47208
 // { 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();
index 8e803c8..7d72ec4 100644 (file)
@@ -7,7 +7,7 @@
 
 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.