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

            Bug ID: 117991
           Summary: [15] RISC-V:
                    g++/template/builtin-speculation-overloads[14].C
                    assertion error
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Postcommit is seeing the following testsuite errors on all targets (rv32/64
glibc/newlib) since the test introduction in r15-6042-g9ed094a817e

FAIL: g++.dg/template/builtin-speculation-overloads1.C  -std=c++17 (test for
excess errors)
FAIL: g++.dg/template/builtin-speculation-overloads1.C  -std=c++20 (test for
excess errors)
FAIL: g++.dg/template/builtin-speculation-overloads1.C  -std=c++26 (test for
excess errors)
FAIL: g++.dg/template/builtin-speculation-overloads4.C  -std=c++17 (test for
excess errors)
FAIL: g++.dg/template/builtin-speculation-overloads4.C  -std=c++20 (test for
excess errors)
FAIL: g++.dg/template/builtin-speculation-overloads4.C  -std=c++26 (test for
excess errors)

https://github.com/patrick-rivos/gcc-postcommit-ci/issues/2225

testsuite log:
Executing on host:
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/testsuite/g++1/../../xg++
-B/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/testsuite/g++1/../../

/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C
 -march=rv32gcv -mabi=ilp32d -mcmodel=medlow   -fdiagnostics-plain-output 
-nostdinc++
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdcv_zicsr_zifencei_zaamo_zalrsc_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b/ilp32d/libstdc++-v3/include/riscv64-unknown-elf
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdcv_zicsr_zifencei_zaamo_zalrsc_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b/ilp32d/libstdc++-v3/include
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/libsupc++
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/include/backward
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/testsuite/util
-fmessage-length=0  -std=c++26  -pedantic-errors -Wno-long-long  -S   -o
builtin-speculation-overloads4.s    (timeout = 600)
spawn -ignore SIGHUP
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/testsuite/g++1/../../xg++
-B/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/testsuite/g++1/../../
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C
-march=rv32gcv -mabi=ilp32d -mcmodel=medlow -fdiagnostics-plain-output
-nostdinc++
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdcv_zicsr_zifencei_zaamo_zalrsc_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b/ilp32d/libstdc++-v3/include/riscv64-unknown-elf
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdcv_zicsr_zifencei_zaamo_zalrsc_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b/ilp32d/libstdc++-v3/include
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/libsupc++
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/include/backward
-I/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/libstdc++-v3/testsuite/util
-fmessage-length=0 -std=c++26 -pedantic-errors -Wno-long-long -S -o
builtin-speculation-overloads4.s
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:
In function 'int main()':
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:19:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
note: the comparison reduces to '(0 == 1)'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:19:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:24:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
note: the comparison reduces to '(0 == 1)'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:24:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:25:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
note: the comparison reduces to '(0 == 1)'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:25:3:
note: in expansion of macro 'MAKE_SPECULATION_ASSERT'
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads.def:28:5:
note: in expansion of macro 'SPECULATION_ASSERTS'
compiler exited with status 1
FAIL: g++.dg/template/builtin-speculation-overloads4.C  -std=c++26 (test for
excess errors)
Excess errors:
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed
/data-disk-1/github/rise-postcommit-10/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/template/builtin-speculation-overloads4.C:16:43:
error: static assertion failed

Reply via email to