https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119490

            Bug ID: 119490
           Summary: g++.dg/template/explicit-args6.C fails test for
                    warnings once with directive fix
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: testsuite-fail
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

With my r15-8958-g1ecdefb5ee9215, I see:
```
@@ -131024,6 +131081,7 @@ PASS: g++.dg/template/explicit-args6.C  -std=c++11 
(test for bogus messages, li
 PASS: g++.dg/template/explicit-args6.C  -std=c++11  (test for bogus messages,
line 16)
 PASS: g++.dg/template/explicit-args6.C  -std=c++11  (test for errors, line 22)
 PASS: g++.dg/template/explicit-args6.C  -std=c++11  (test for errors, line 30)
+FAIL: g++.dg/template/explicit-args6.C  -std=c++11  (test for warnings, line
23)
 PASS: g++.dg/template/explicit-args6.C  -std=c++11 (test for excess errors)
 PASS: g++.dg/template/explicit-args6.C  -std=c++17  (test for bogus messages,
line 13)
 PASS: g++.dg/template/explicit-args6.C  -std=c++17  (test for bogus messages,
line 14)
@@ -131031,6 +131089,7 @@ PASS: g++.dg/template/explicit-args6.C  -std=c++17 
(test for bogus messages, li
 PASS: g++.dg/template/explicit-args6.C  -std=c++17  (test for bogus messages,
line 16)
 PASS: g++.dg/template/explicit-args6.C  -std=c++17  (test for errors, line 22)
 PASS: g++.dg/template/explicit-args6.C  -std=c++17  (test for errors, line 30)
+FAIL: g++.dg/template/explicit-args6.C  -std=c++17  (test for warnings, line
23)
 PASS: g++.dg/template/explicit-args6.C  -std=c++17 (test for excess errors)
 PASS: g++.dg/template/explicit-args6.C  -std=c++26  (test for bogus messages,
line 13)
 PASS: g++.dg/template/explicit-args6.C  -std=c++26  (test for bogus messages,
line 14)
@@ -131038,6 +131097,7 @@ PASS: g++.dg/template/explicit-args6.C  -std=c++26 
(test for bogus messages, li
 PASS: g++.dg/template/explicit-args6.C  -std=c++26  (test for bogus messages,
line 16)
 PASS: g++.dg/template/explicit-args6.C  -std=c++26  (test for errors, line 22)
 PASS: g++.dg/template/explicit-args6.C  -std=c++26  (test for errors, line 30)
+FAIL: g++.dg/template/explicit-args6.C  -std=c++26  (test for warnings, line
23)
 PASS: g++.dg/template/explicit-args6.C  -std=c++26 (test for excess errors)
 PASS: g++.dg/template/explicit-args7.C  -std=c++17 (test for excess errors)
 PASS: g++.dg/template/explicit-args7.C  -std=c++26 (test for excess errors)
```

The directive was being ignored before.

Reply via email to