+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
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;
}
+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
// 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();
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.