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

            Bug ID: 113381
           Summary: FAIL: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  at
                    line 58 (test for warnings, line 57)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../xg++
-B
/home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../
/home/dave/gnu/gcc/gcc/gcc/
testsuite/g++.dg/cpp2a/consteval-prop6.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/includ
e -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/gcc/gcc/libst
dc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util
-f
message-length=0 -std=c++20 -pedantic-errors -Wno-long-long -S -o
consteval-prop
6.s
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C: In
construc
tor 'SS::SS()':
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:20:8:
error:
 call to consteval function 'f(0)' is not a constant expression
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:20:8:   in
'
constexpr' expansion of 'f(0)'
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:11:16:
error
: call to non-'constexpr' function 'void side_effect()'
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:5:6: note:
'
void side_effect()' declared here
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C: In
function
 'void test()':
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:57:22:
error
: call to consteval function 'x.X::X()' is not a constant expression
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:57:22:   in
'constexpr' expansion of 'X()'
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:51:3:
error:
 'consteval int undef(int)' used before its definition
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:51:3: note:
'consteval X::X()' was promoted to an immediate function because its body
contai
ns an immediate-escalating expression 'undef(0)'
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C: At global
s
cope:
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp2a/consteval-prop6.C:45:15:
warning: inline function 'consteval int undef(int)' used but never defined
compiler exited with status 1
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  (test for errors, line 11)
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  (test for errors, line 20)
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  (test for warnings, line 45)
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  (test for errors, line 51)
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  (test for errors, line 57)
FAIL: g++.dg/cpp2a/consteval-prop6.C  -std=c++20  at line 58 (test for
warnings, line 57)
PASS: g++.dg/cpp2a/consteval-prop6.C  -std=c++20 (test for excess errors)

Reply via email to