From: Aldy Hernandez Date: Thu, 7 Aug 2003 00:10:03 +0000 (+0000) Subject: decl.c (grokparms): Use cp_build_qualified_type instead TYPE_MAIN_VARIANT. X-Git-Tag: releases/gcc-3.4.0~4363 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79a1a73608a70c30ef4da35a369d30b3cbd28769;p=thirdparty%2Fgcc.git decl.c (grokparms): Use cp_build_qualified_type instead TYPE_MAIN_VARIANT. 2003-08-06 Aldy Hernandez * decl.c (grokparms): Use cp_build_qualified_type instead TYPE_MAIN_VARIANT. [[Split portion of a mixed commit.]] From-SVN: r70211.2 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 531d4e88aa2a..f6545a866dac 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-08-06 Aldy Hernandez + + * decl.c (grokparms): Use cp_build_qualified_type instead + TYPE_MAIN_VARIANT. + 2003-08-05 Gabriel Dos Reis * cxx-pretty-print.h: New file. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 503a635480c6..9afa30361098 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11970,7 +11970,7 @@ grokparms (tree first_parm) { /* Top-level qualifiers on the parameters are ignored for function types. */ - type = TYPE_MAIN_VARIANT (type); + type = cp_build_qualified_type (type, 0); if (TREE_CODE (type) == METHOD_TYPE) { error ("parameter `%D' invalidly declared method type", decl);