This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch c++]: Fix for PR c++/51344 - cc1plus hangs when compiling
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: gcc-patches at gcc dot gnu dot org
- Cc: jason at redhat dot com, ktietz70 at googlemail dot com
- Date: Fri, 20 Jan 2012 10:54:41 +0100
- Subject: 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