]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/32950 (ICE with __complex__ double)
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 7 Jun 2009 13:35:05 +0000 (13:35 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 7 Jun 2009 13:35:05 +0000 (06:35 -0700)
2009-06-07  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/32950
* g++.dg/torture/pr32950.C: New.

From-SVN: r148244

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

index 91162e2f11b9c0ff74eddfb797ebf42fa4b497a2..050a6fe9298f6dd7ffa7fe9c30862814b9000698 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR middle-end/32950
+       * g++.dg/torture/pr32950.C: New.
+
 2009-06-07  Daniel Franke  <franke.daniel@gmail.com>
 
        PR fortran/25104
diff --git a/gcc/testsuite/g++.dg/torture/pr32950.C b/gcc/testsuite/g++.dg/torture/pr32950.C
new file mode 100644 (file)
index 0000000..8d64296
--- /dev/null
@@ -0,0 +1,19 @@
+/* { dg-do compile } */
+
+struct A
+{
+  __complex__ double c;
+};
+
+struct B
+{
+  A a;
+  B(A x) : a(x) {}
+  void foo();
+};
+
+void bar()
+{
+  B b = A();
+  B(b).foo();
+}