https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104246
Bug ID: 104246 Summary: FAIL: g++.dg/cpp0x/constexpr-compare2.C -std=c++20 (test for excess errors) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-* Target: hppa*-*-* Build: hppa*-*-* (32-bit) /home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11 -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++20 -pedantic-errors -Wno-long-long -fdelete-null-pointer-checks -S -o constexpr-compare2.s /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:7:17: error: non-constant condition for static assertion /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:7:17: error: '(f != g)' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:10:20: error: non-constant condition for static assertion /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:10:20: error: '(<lambda()>::_FUN != <lambda()>::_FUN)' is not a constant expression compiler exited with status 1 FAIL: g++.dg/cpp0x/constexpr-compare2.C -std=c++20 (test for excess errors) Excess errors: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:7:17: error: non-constant condition for static assertion /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:7:17: error: '(f != g)' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:10:20: error: non-constant condition for static assertion /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C:10:20: error: '(<lambda()>::_FUN != <lambda()>::_FUN)' is not a constant expression All hppa targets use function descriptors. My first thought was to skip test as probably the test is not valid.