PR c++/57253
* decl.c (grokdeclarator): Apply ref-qualifier
in the TYPENAME case.
From-SVN: r198842
2013-05-13 Jason Merrill <jason@redhat.com>
+ PR c++/57253
+ * decl.c (grokdeclarator): Apply ref-qualifier
+ in the TYPENAME case.
+
PR c++/57252
* decl.c (decls_match): Compare ref-qualifiers.
type = void_type_node;
}
}
- else if (memfn_quals)
+ else if (memfn_quals || rqual)
{
if (ctype == NULL_TREE
&& TREE_CODE (type) == METHOD_TYPE)
--- /dev/null
+// PR c++/57253
+// { dg-require-effective-target c++11 }
+
+template<typename T> struct foo;
+
+template<> struct foo<void()&> {};
+template<> struct foo<void()> {};
+
+int main()
+{}