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

            Bug ID: 108112
           Summary: ICE on explicit instantiation of template member
                    operator delete
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Douglas.Deslauriers at vector dot com
  Target Milestone: ---

Created attachment 54094
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54094&action=edit
Preprocessed Input

$ g++ -freport-bug compiler_crash.cpp 
compiler_crash.cpp:5:62: internal compiler error: in coerce_delete_type, at
cp/decl2.cc:1979
    5 | template void C::operator delete<float>(void* ptr, float user);
      |                                                              ^
0x1b286a6 internal_error(char const*, ...)
        ???:0
0x6ccc1e fancy_abort(char const*, int, char const*)
        ???:0
0x7434da grok_op_properties(tree_node*, bool)
        ???:0
0x74b5df grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        ???:0
0x823ad9 c_parse_file()
        ???:0
0x90de9d c_common_parse_file()
        ???:0


$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/gnu/store/shhxkiy9qr695h8k64g9m6a03msaw2yk-gcc-12.2.0/libexec/gcc/x86_64-unknown-linux-gnu/12.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: 
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)

Reply via email to