GCC crashes and seemingly tells me to report it here

Description:

GCC crashes with a internal compiler error: Segmentation fault when you compile the file test2.cpp with the command g++ --std=c++23 test2.cpp. Attached is full output of gcc when crashing and the preprocessed source as the crash requests. clang++ --std=c++23 test2.cpp compiles the file with no errors.

test2.cpp inlined below for convenience

#include <variant>

template<typename T> 
using templated_varient = std::variant<T>;

int main() {
	templated_varient meow = std::variant<int>(10);
	return 0;
}
// vim: ts=2 sw=2

The crash log notably ends with See <https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues> for instructions. which means if you won't want this bug to be reported here, then you have a packaging issue, as it seemingly tells me to report it here. If someone chooses to alert the GCC team of this bug and enter it into their tracker, I would be delighted. I did not as I have not confirmed it still exists in their development version.

my gcc package version is gcc 14.2.1+r753+g1cd744a6828f-1, and my gcc-lib is gcc-libs 14.2.1+r753+g1cd744a6828f-1

crash_output.logtest2.cpp14.2.1+r753+g1cd744a6828f-1`

Edited by Ribbon Otter
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information