From: Jason Merrill Date: Thu, 27 May 2010 20:17:35 +0000 (-0400) Subject: revert accidental checkin X-Git-Tag: releases/gcc-4.3.6~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd3d768a7ec6ee769fbc8feb168dd92fc9801139;p=thirdparty%2Fgcc.git revert accidental checkin From-SVN: r159948 --- 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