Commit 451c0899 by Mark Mitchell Committed by Mark Mitchell

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

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

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

From-SVN: r58217
parent 57e172dd
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-15 Richard Henderson <rth@redhat.com>
* error.c (dump_expr): Use real_to_decimal directly, and with
......
......@@ -705,7 +705,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))
......
2002-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/7524
* g++.dg/init/array7.C: New test.
2002-10-15 Mark Mitchell <mark@codesourcery.com>
* g++.dg/init/array6.C: New test.
......
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]) {}
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