From fd3d768a7ec6ee769fbc8feb168dd92fc9801139 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 27 May 2010 16:17:35 -0400 Subject: [PATCH] revert accidental checkin From-SVN: r159948 --- gcc/cp/decl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 239bac337c09..3542767655c0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8248,12 +8248,6 @@ grokdeclarator (const cp_declarator *declarator, memfn_quals = TYPE_UNQUALIFIED; } - if (TREE_CODE (type) == FUNCTION_TYPE - && cp_type_quals (type) != TYPE_UNQUALIFIED) - error ("cannot declare %s to qualified function type %qT", - declarator->kind == cdk_reference ? "reference" : "pointer", - type); - /* When the pointed-to type involves components of variable size, care must be taken to ensure that the size evaluation code is emitted early enough to dominate all the possible later uses -- 2.47.2