Commit 18dc5657 by Jason Merrill Committed by Jason Merrill

re PR c++/57253 (GCC ignores ref-qualifiers of pseudo-function types in explicit specializations)

	PR c++/57253
	* decl.c (grokdeclarator): Apply ref-qualifier
	in the TYPENAME case.

From-SVN: r198842
parent fab8f0b6
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.
......
......@@ -10284,7 +10284,7 @@ grokdeclarator (const cp_declarator *declarator,
type = void_type_node;
}
}
else if (memfn_quals)
else if (memfn_quals || rqual)
{
if (ctype == NULL_TREE
&& TREE_CODE (type) == METHOD_TYPE)
......
// PR c++/57253
// { dg-require-effective-target c++11 }
template<typename T> struct foo;
template<> struct foo<void()&> {};
template<> struct foo<void()> {};
int main()
{}
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