diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/method.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/init/array7.C | 15 |
4 files changed, 27 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a3ef2da..07b8732 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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-15 Richard Henderson <rth@redhat.com> * error.c (dump_expr): Use real_to_decimal directly, and with diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 0658181..6f3e0e7 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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)) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50f478fc5..9f88588 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 Mark Mitchell <mark@codesourcery.com> * g++.dg/init/array6.C: New test. diff --git a/gcc/testsuite/g++.dg/init/array7.C b/gcc/testsuite/g++.dg/init/array7.C new file mode 100644 index 0000000..23c6a70 --- /dev/null +++ b/gcc/testsuite/g++.dg/init/array7.C @@ -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]) {} + + + |