This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch c++]: Fix for PR c++/51344 - cc1plus hangs when compiling


Kai,

I think there is a typo in the test g++.dg/torture/pr51344.C causing
a regression:

FAIL: g++.dg/torture/pr51344.C  -O0  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -Os  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
FAIL: g++.dg/torture/pr51344.C  -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)

Using the original test for the pr, i.e.,

--- ../_clean/gcc/testsuite/g++.dg/torture/pr51344.C	2012-01-20 00:02:03.000000000 +0100
+++ gcc/testsuite/g++.dg/torture/pr51344.C	2012-01-20 10:48:07.000000000 +0100
@@ -1,4 +1,6 @@
 /* { dg-do compile } */
+class A;
+
 template <class T>
 class B
 {

the test passes.

TIA

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]