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

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Created attachment 59509
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59509&action=edit
power_profiles_daemon.cpp.cpp.orig.xz

In case I reduced it incorrectly power_profiles_daemon.cpp.cpp.orig.xz is an
unreduced example. Fails in a similar way:

$ gcc/xg++ -Bgcc -Wall -std=c++20  -O2 -x c++
/tmp/power_profiles_daemon.cpp.cpp.orig
/tmp/power_profiles_daemon.cpp.cpp.orig: In static member function ‘static
Glib::Variant<std::tuple<_UTypes ...> > Glib::Variant<std::tuple<_UTypes ...>
>::create(const std::tuple<_UTypes ...>&) [with Types = {Glib::ustring,
Glib::ustring, Glib::Variant<Glib::ustring>}]’:
/tmp/power_profiles_daemon.cpp.cpp.orig:91890:1: error: type mismatch in binary
expression
91890 | Variant<std::tuple<Types...>>::create(const std::tuple<Types...>& data)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sizetype

long int

sizetype

_221 = _343 - _227;
during GIMPLE pass: ldist
/tmp/power_profiles_daemon.cpp.cpp.orig:91890:1: internal compiler error:
verify_gimple failed
0x284b751 internal_error(char const*, ...)
        /home/slyfox/dev/git/gcc/gcc/diagnostic-global-context.cc:518
0x12bba86 verify_gimple_in_cfg(function*, bool, bool)
        /home/slyfox/dev/git/gcc/gcc/tree-cfg.cc:5682
0x112caaa execute_function_todo
        /home/slyfox/dev/git/gcc/gcc/passes.cc:2102
0x112cc18 do_per_function
        /home/slyfox/dev/git/gcc/gcc/passes.cc:1701
0x112cd26 execute_todo
        /home/slyfox/dev/git/gcc/gcc/passes.cc:2156
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