PR c++/84537
* name-lookup.c (suggest_alternative_in_explicit_scope): Return false
if name is error node.
* g++.dg/parse/error60.C: New test.
From-SVN: r257988
+2018-02-26 Marek Polacek <polacek@redhat.com>
+
+ PR c++/84537
+ * name-lookup.c (suggest_alternative_in_explicit_scope): Return false
+ if name is error node.
+
2018-02-25 Jason Merrill <jason@redhat.com>
PR c++/84015 - ICE with class deduction and auto template parm.
suggest_alternative_in_explicit_scope (location_t location, tree name,
tree scope)
{
+ /* Something went very wrong; don't suggest anything. */
+ if (name == error_mark_node)
+ return false;
+
/* Resolve any namespace aliases. */
scope = ORIGINAL_NAMESPACE (scope);
+2018-02-26 Marek Polacek <polacek@redhat.com>
+
+ PR c++/84537
+ * g++.dg/parse/error60.C: New test.
+
2018-02-26 Jakub Jelinek <jakub@redhat.com>
PR c++/84556
--- /dev/null
+// PR c++/84537
+// { dg-do compile }
+
+namespace N
+{
+ template<int> struct A {};
+}
+
+N::template A<> a; // { dg-error "" }