https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121872
Bug ID: 121872
Summary: g++.dg/modules/default-arg-4 is UNRESOLVED
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: nshead at gcc dot gnu.org
Target Milestone: ---
Target: i386-pc-solaris2.11
The new g++.dg/modules/default-arg-4 test is UNRESOLVED (at least on
Solaris/x86,
but most likely in general):
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++17 execute
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++17 link
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++20 execute
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++20 link
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++26 execute
+UNRESOLVED: g++.dg/modules/default-arg-4 -std=c++26 link
Since the previous compilation fails, there's no object file and linking let
alone running cannot work:
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:8:1:
error: default argument given for parameter 1 of 'int foo(int)' [-fpermissive]
In module M, imported at
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:5:
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_a.C:7:5:
note: previous specification in 'int foo(int)' here
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:13:23:
error: redefinition of default argument for 'class U'
In module M, imported at
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:5:
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_a.C:8:23:
note: original definition appeared here
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:20:31:
error: redefinition of default argument for 'int N'
In module M, imported at
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_b.C:5:
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/modules/default-arg-4_a.C:10:31:
note: original definition appeared here
compiler exited with status 1
I think it should suffice to turn the test into a compile test instead.