Internal compiler error during template substitution

Description:

During compilation of my source code for my Auspicious Library, specifically test_cu_containers.cpp, G++ has experienced a crash (Segmentation fault) during template substitution (?) for std::span. I am using GCC 14.2.1 20240910 (package gcc-14.2.1+r134+gab884fffe3fc-1). I think all the relevant information are present in log files that are generated by GCC by using -freport-bug flag.

This may be an upstream bug, but the instructions that has been outputted by the compiler has led me here:

Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues for instructions.

Also note: I am new to being involved to any community, I hope you don't get too mad at me for doing this :-)

Additional info:

  • package version(s): GCC 14.2.1 20240910 (package gcc-14.2.1+r134+gab884fffe3fc-1)
  • config and/or log files: GCC-generated report file using -freport-bug flag: ccSZ0XQs.out

Steps to reproduce:

Run the following command:

# Close my Auspicious Library
git clone https://github.com/anstropleuton/auspicious-library.git
cd auspicious-library
# This commit specifically contains code to crash G++
git checkout ff74659
# Crash G++ (and debug the crash I suppose?)
mkdir -p build/obj
g++ -std=c++23 -Wall -fconcepts-diagnostics-depth=10 -g -Iinclude -c tests/test_cu_containers.cpp -o build/obj/test_cu_containers.o -freport-bug
Edited by Anstro Pleuton
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information