Commit 79a1a736 by Aldy Hernandez Committed by Aldy Hernandez

decl.c (grokparms): Use cp_build_qualified_type instead TYPE_MAIN_VARIANT.

2003-08-06  Aldy Hernandez  <aldyh@redhat.com>

	* decl.c (grokparms): Use cp_build_qualified_type instead
	TYPE_MAIN_VARIANT.

[[Split portion of a mixed commit.]]

From-SVN: r70211.2
parent 372431b6
2003-08-06 Aldy Hernandez <aldyh@redhat.com>
* decl.c (grokparms): Use cp_build_qualified_type instead
TYPE_MAIN_VARIANT.
2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
* cxx-pretty-print.h: New file. * cxx-pretty-print.h: New file.
......
...@@ -11970,7 +11970,7 @@ grokparms (tree first_parm) ...@@ -11970,7 +11970,7 @@ grokparms (tree first_parm)
{ {
/* Top-level qualifiers on the parameters are /* Top-level qualifiers on the parameters are
ignored for function types. */ ignored for function types. */
type = TYPE_MAIN_VARIANT (type); type = cp_build_qualified_type (type, 0);
if (TREE_CODE (type) == METHOD_TYPE) if (TREE_CODE (type) == METHOD_TYPE)
{ {
error ("parameter `%D' invalidly declared method type", decl); error ("parameter `%D' invalidly declared method type", decl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment