* g++.dg/parse/parse7.C: New test.
authorNeil Booth <neil@daikokuya.co.uk>
Thu, 2 Jan 2003 21:06:38 +0000 (21:06 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 2 Jan 2003 21:06:38 +0000 (21:06 +0000)
From-SVN: r60805

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/parse7.C [new file with mode: 0644]

index bd61d145a8a3a5af22f45eb1996788fa4d1b9f60..83e29601066cbe0853eca76a6a2ef391fd19181a 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
+
+       * g++.dg/parse/parse7.C: New test.
+
 2003-01-02  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/2843
diff --git a/gcc/testsuite/g++.dg/parse/parse7.C b/gcc/testsuite/g++.dg/parse/parse7.C
new file mode 100644 (file)
index 0000000..3676ded
--- /dev/null
@@ -0,0 +1,24 @@
+/* PR c++/3650 */
+/* { dg-do compile } */
+
+class class1 {
+public:
+  explicit class1(double a) { data = a;  }
+  double data;
+};
+
+class class2 {
+public:
+  class2(class1 a, float t) {  }
+  class2(float t, class1 a) {  }
+};
+
+int main() {
+  float t2 = 1.5;
+  double pir = 3.14159;
+  // Used to get: error: type specifier omitted for parameter `t2'
+  class2 h(class1(double(pir)), t2);
+  class2 i(class1(pir), t2);
+
+  return 0;
+}