https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116247
Bug ID: 116247
Summary: [15] RISC-V: shared_ptr_atomic.h: uintptr_t not
declared in scope
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: ewlu at rivosinc dot com
Target Milestone: ---
Created attachment 58844
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58844&action=edit
test log for g++.dg/coroutines/pr95823.C
The following testcases are failing on riscv newlib targets
https://github.com/patrick-rivos/gcc-postcommit-ci/issues/1460
FAIL: g++.dg/coroutines/pr100772-b.C (test for excess errors)
FAIL: g++.dg/coroutines/pr95823.C (test for excess errors)
FAIL: g++.dg/cpp1z/decomp37.C -std=c++20 (test for excess errors)
FAIL: g++.dg/modules/xtreme-header-2_a.H -std=c++2a (test for excess errors)
FAIL: g++.dg/modules/xtreme-header-2_a.H module-cmi
(gcm.cache/$srcdir/g++.dg/modules/xtreme-header-2_a.H.gcm)
FAIL: g++.dg/modules/xtreme-header-2_b.C -std=c++2a (test for excess errors)
FAIL: g++.dg/modules/xtreme-header-2_c.C -std=c++2a (test for excess errors)
FAIL: g++.dg/modules/xtreme-tr1_a.H -std=c++2a (test for excess errors)
FAIL: g++.dg/modules/xtreme-tr1_a.H module-cmi
(gcm.cache/$srcdir/g++.dg/modules/xtreme-tr1_a.H.gcm)
FAIL: g++.dg/modules/xtreme-tr1_b.C -std=c++2a (test for excess errors)
FAIL: g++.dg/opt/pr103989.C -std=gnu++20 (test for excess errors)
FAIL: g++.dg/warn/Wuninitialized-33.C -std=gnu++20 (test for excess errors)
FAIL: g++.dg/warn/Wuninitialized-pr107919-1.C -std=gnu++20 (test for excess
errors)
Error:
In file included from
/scratch/ewlu/ci/triage/baseline/hash-3a817a4a5a6d94da9127af3be9f84a74e3076ee2/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdc_zicsr_zifencei_zaamo_zalrsc/ilp32d/libstdc++-v3/include/memory:81,
from
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/g++.dg/coroutines/pr95823.C:2:
/scratch/ewlu/ci/triage/baseline/hash-3a817a4a5a6d94da9127af3be9f84a74e3076ee2/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdc_zicsr_zifencei_zaamo_zalrsc/ilp32d/libstdc++-v3/include/bits/shared_ptr_atomic.h:523:31:
error: 'uintptr_t' was not declared in this scope
/scratch/ewlu/ci/triage/baseline/hash-3a817a4a5a6d94da9127af3be9f84a74e3076ee2/build-gcc-newlib-stage2/riscv64-unknown-elf/rv32imafdc_zicsr_zifencei_zaamo_zalrsc/ilp32d/libstdc++-v3/include/bits/shared_ptr_atomic.h:523:31:
note: 'uintptr_t' is defined in header '<cstdint>'; this is probably fixable by
adding '#include <cstdint>'
...
bisected to r15-2655-g3a817a4a5a6 as first bad commit