From 79a1a73608a70c30ef4da35a369d30b3cbd28769 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Thu, 7 Aug 2003 00:10:03 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.47.2