]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
revert accidental checkin
authorJason Merrill <jason@gcc.gnu.org>
Thu, 27 May 2010 20:17:35 +0000 (16:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 27 May 2010 20:17:35 +0000 (16:17 -0400)
From-SVN: r159948

gcc/cp/decl.c

index 239bac337c094351bc384881c7dcd5a07efb99a0..3542767655c096eb6b62ddf5164f4a9d1846a343 100644 (file)
@@ -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