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

--- Comment #18 from Zdenek Sojka <zsojka at seznam dot cz> ---
(In reply to Sam James from comment #15)
> Created attachment 62516 [details]
> signature.cpp.ii.xz (working)
> 
> I've attached my signature.cpp.ii.xz from one attempt:
> 
> g++ -DGLOBAL_DATA_DIR=\"/usr/share/openttd\" -DNDEBUG
> -DPERSONAL_DIR=\".openttd\" -DPOINTER_IS_64BIT
> -DTTD_ENDIAN=TTD_LITTLE_ENDIAN -DUNIX -DWITH_CURL -DWITH_FLUIDSYNTH
> -DWITH_FONTCONFIG -DWITH_FREETYPE -DWITH_HARFBUZZ -DWITH_ICU_I18N
> -DWITH_ICU_UC -DWITH_LIBLZMA -DWITH_OPENGL -DWITH_PERSONAL_DIR -DWITH_PNG
> -DWITH_SDL2 -DWITH_SSE -DWITH_ZLIB
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> 3rdparty/squirrel/include -I/usr/include/harfbuzz
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated/script/api
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> script/api
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated/script
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated/script/api/ai
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> script/api/ai
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated/script/api/game
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> script/api/game
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1_build/
> generated/script/api/template
> -I/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> script/api/template -isystem /usr/include/SDL2 -isystem
> /usr/include/freetype2 -std=c++20 -fdiagnostics-color=always
> -finput-charset=utf-8  -MD -MT
> CMakeFiles/openttd_lib.dir/src/signature.cpp.o -MF
> CMakeFiles/openttd_lib.dir/src/signature.cpp.o.d -o
> CMakeFiles/openttd_lib.dir/src/signature.cpp.o -c
> /var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/
> signature.cpp -save-temps -O
> 
> in case it's useful for comparison, but I'm a loss for now.

It fails with different flags, at a different place:

$ x86_64-pc-linux-gnu-gcc -fno-thread-jumps -O -fprofile-use -std=gnu++20
signature.cpp.ii -w
In file included from
/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/signature.cpp:20:
/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/3rdparty/nlohmann/json.hpp:
In member function 'ValueType
nlohmann::json_abi_v3_12_0::basic_json<ObjectType, ArrayType, StringType,
BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType,
AllocatorType, JSONSerializer, BinaryType,
CustomBaseClass>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<0>)
const [with ValueType = std::__cxx11::basic_string<char>; typename
std::enable_if<(nlohmann::json_abi_v3_12_0::detail::is_default_constructible<ValueType>::value
&&
nlohmann::json_abi_v3_12_0::detail::has_from_json<nlohmann::json_abi_v3_12_0::basic_json<ObjectType,
ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType,
NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass>,
ValueType>::value), int>::type <anonymous> = 0; ObjectType = std::map;
ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>;
BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long
unsigned int; NumberFloatType = double; AllocatorType = std::allocator;
JSONSerializer = nlohmann::json_abi_v3_12_0::adl_serializer; BinaryType =
std::vector<unsigned char>; CustomBaseClass = void]':
/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/3rdparty/nlohmann/json.hpp:1633:15:
error: invalid conversion in return statement
struct basic_string

const struct string_t *

# VUSE <.MEM_7>
return _16;
during GIMPLE pass: dom
/var/tmp/portage/games-simulation/openttd-14.1/work/openttd-14.1/src/3rdparty/nlohmann/json.hpp:1633:15:
internal compiler error: verify_gimple failed
0x2ef576c internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:786
0x19782fd verify_gimple_in_cfg(function*, bool, bool)
        /repo/gcc-trunk/gcc/tree-cfg.cc:5603
0x17d448a execute_function_todo
        /repo/gcc-trunk/gcc/passes.cc:2097
0x17d495e execute_todo
        /repo/gcc-trunk/gcc/passes.cc:2149
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to