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

Kai Tietz ktietz70@googlemail.com
Fri Jan 20 10:38:00 GMT 2012


2012/1/20 Kai Tietz <ktietz70@googlemail.com>:
> 2012/1/20 Dominique Dhumieres <dominiq@lps.ens.fr>:
>> 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
>
> Duh,  I will correct it ASAP.
>
> Thanks,
> Kai

Fixed.



More information about the Gcc-patches mailing list