Hi, I'm playing c++ testsuite on my gcc.4.7.3 port and I encounter the following result on test auto27.C
PASS: g++.dg/cpp0x/auto27.C -std=c++98 std (test for errors, line 3) PASS: g++.dg/cpp0x/auto27.C -std=c++98 auto (test for errors, line 3) PASS: g++.dg/cpp0x/auto27.C -std=c++98 no type (test for errors, line 3) PASS: g++.dg/cpp0x/auto27.C -std=c++98 (test for excess errors) FAIL: g++.dg/cpp0x/auto27.C -std=c++11 std (test for errors, line 3) FAIL: g++.dg/cpp0x/auto27.C -std=c++11 auto (test for errors, line 3) FAIL: g++.dg/cpp0x/auto27.C -std=c++11 no type (test for errors, line 3) PASS: g++.dg/cpp0x/auto27.C -std=c++11 (test for excess errors) auto27.C : auto main()->int // { dg-error "std=" "std" { target c++98 } } // { dg-error "auto" "auto" { target c++98 } 3 } // { dg-error "no type" "no type" { target c++98 } 3 } { } I don't understand if DejaGNU tells me that the test is OK or KO ... When I use -std=c++98 option, I get the 3 expected errors and when I use -std=c++11, I get no error. That seems to be the expected result but I don't understand why the word FAIL appears in the log... Should I ignore the FAILs when the comment contains '(test for errors' and consider that those tests are parts of a larger test with comment '(test for excess errors' ? Regards, Selim