re PR c++/7524 ([Regression from GCC 2.95.3] f(const float arg[3]) fails)

PR c++/7524
	* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
	build_qualified_type.

	PR c++/7524
	* g++.dg/init/array7.C: New test.

From-SVN: r58216
This commit is contained in:
Mark Mitchell 2002-10-16 18:53:29 +00:00 committed by Mark Mitchell
parent 70ad811d93
commit af3b1b47fb
4 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/7524
* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
build_qualified_type.
2002-10-14 Mark Mitchell <mark@codesourcery.com>
PR c++/7176

View File

@ -688,7 +688,7 @@ do_build_assign_ref (fndecl)
comp = build (COMPONENT_REF, TREE_TYPE (field), comp, field);
init = build (COMPONENT_REF,
build_qualified_type (TREE_TYPE (field), cvquals),
cp_build_qualified_type (TREE_TYPE (field), cvquals),
init, field);
if (DECL_NAME (field))

View File

@ -1,3 +1,8 @@
2002-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/7524
* g++.dg/init/array7.C: New test.
2002-10-15 Ulrich Weigand <uweigand@de.ibm.com>
PR target/7370

View File

@ -0,0 +1,15 @@
struct S {
virtual void v () {}
void f (const float g[3]);
float h[3];
};
void g () {
S s1, s2;
s1 = s2;
}
void S::f (const float g[3]) {}