]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/7524 ([Regression from GCC 2.95.3] f(const float arg[3]) fails)
authorMark Mitchell <mark@codesourcery.com>
Wed, 16 Oct 2002 18:58:38 +0000 (18:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 16 Oct 2002 18:58:38 +0000 (18:58 +0000)
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

gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/array7.C [new file with mode: 0644]

index a3ef2da426bd43496630723c99bad5e26abc2f64..07b8732d9332f21772b412ed25106dbf13a08111 100644 (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-15  Richard Henderson  <rth@redhat.com>
 
        * error.c (dump_expr): Use real_to_decimal directly, and with
index 065818132e9d0fa61ada2b2e9fd1c9ca7694f97e..6f3e0e7ba5f3d0defe4828df558d8e06bd52895b 100644 (file)
@@ -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))
index 50f478fc58638b005321aa8ecda78bebf3955b0c..9f88588bd4d1080e1129934fca71ed076ffa6dfd 100644 (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  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 (file)
index 0000000..23c6a70
--- /dev/null
@@ -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]) {}
+
+
+
This page took 0.118599 seconds and 5 git commands to generate.