public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108112] New: ICE on explicit instantiation of template member operator delete
@ 2022-12-14 19:38 Douglas.Deslauriers at vector dot com
  2022-12-14 19:41 ` [Bug c++/108112] " pinskia at gcc dot gnu.org
  2022-12-14 19:45 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: Douglas.Deslauriers at vector dot com @ 2022-12-14 19:38 UTC (permalink / raw)
  To: gcc-bugs

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/108112] ICE on explicit instantiation of template member operator delete
  2022-12-14 19:38 [Bug c++/108112] New: ICE on explicit instantiation of template member operator delete Douglas.Deslauriers at vector dot com
@ 2022-12-14 19:41 ` pinskia at gcc dot gnu.org
  2022-12-14 19:45 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-14 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-14
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |4.1.2
           Keywords|                            |ice-on-valid-code
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
class C {
    template <typename T>
    void operator delete(void* ptr, T user) {}
};
template void C::operator delete<float>(void* ptr, float user);
```

Confirmed not a regression has been ICEing since at least 4.1.2.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/108112] ICE on explicit instantiation of template member operator delete
  2022-12-14 19:38 [Bug c++/108112] New: ICE on explicit instantiation of template member operator delete Douglas.Deslauriers at vector dot com
  2022-12-14 19:41 ` [Bug c++/108112] " pinskia at gcc dot gnu.org
@ 2022-12-14 19:45 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-14 19:45 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=36406

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So I looked and found that this was reported before but the bug which it was
reported on was closed as fixed as the original testcase in that bug was fixed.
See bug 36406 comment #2 for the testcase which fails still after the fix for
that bug report.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-14 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 19:38 [Bug c++/108112] New: ICE on explicit instantiation of template member operator delete Douglas.Deslauriers at vector dot com
2022-12-14 19:41 ` [Bug c++/108112] " pinskia at gcc dot gnu.org
2022-12-14 19:45 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).