This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] New testcase for PR 12726.
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 03 Nov 2003 22:35:54 +0100 (CET)
- Subject: [patch] New testcase for PR 12726.
- Reply-to: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
The follwing patch replaces the testcase for PR12726 (which contains an
#include) by a self-contained version. In addition, the missing
ChangeLog entry for the first appearance of the testcase is added.
Committed to mainline as obvious.
Regards,
Volker
2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/12726
* g++.dg/ext/complit2.C: Replace test with self-contained version.
* ChangeLog: Add missing first entry for above test.
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ChangeLog,v
retrieving revision 1.3166
diff -u -p -r1.3166 ChangeLog
--- ChangeLog 2 Nov 2003 14:17:38 -0000 1.3166
+++ ChangeLog 3 Nov 2003 21:27:01 -0000
@@ -122,6 +128,11 @@
* g++.dg/inherit/covariant9.C: New test.
* g++.dg/inherit/covariant10.C: New test.
* g++.dg/inherit/covariant11.C: New test.
+
+2003-10-23 Jason Merrill <jason@redhat.com>
+
+ PR c++/12726
+ * g++.dg/ext/complit2.C: New test.
2003-10-20 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Index: g++.dg/ext/complit2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/complit2.C,v
retrieving revision 1.1
diff -u -p -r1.1 complit2.C
--- g++.dg/ext/complit2.C 23 Oct 2003 06:40:51 -0000 1.1
+++ g++.dg/ext/complit2.C 3 Nov 2003 21:27:01 -0000
@@ -1,17 +1,22 @@
// PR c++/12726
+// Origin: Vladimir Zidar <mr_W@mindnever.org>
+// Reduced version: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-options "" }
-#include <string>
-
-struct foobar {
- std::string s;
-};
-
-int main(int argc, char **argv)
+struct A
{
- foobar fb;
+ A();
+ A(const A&);
+ A(int);
+};
- fb = (foobar) { "abcd" };
+struct B
+{
+ A a;
+};
- return 0;
+void foo()
+{
+ B b;
+ b = (B){0};
}
===================================================================