diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-10-16 18:58:38 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-10-16 18:58:38 +0000 |
commit | 451c08992e6c3ff4a053b9d20ed6d6f47923aae6 (patch) | |
tree | 09fe1da2acc0f0cdc2c7700bd26483f079818fd7 /gcc | |
parent | 57e172dd3a28714d38038c05563c58e8e3483220 (diff) | |
download | gcc-451c08992e6c3ff4a053b9d20ed6d6f47923aae6.zip gcc-451c08992e6c3ff4a053b9d20ed6d6f47923aae6.tar.gz gcc-451c08992e6c3ff4a053b9d20ed6d6f47923aae6.tar.bz2 |
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
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]) {} + + + |