public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52088] New: [4.7 Regression] ICE in "delete" with template convertion operator
@ 2012-02-02  0:54 pinskia at gcc dot gnu.org
  2012-02-02  0:55 ` [Bug c++/52088] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02  0:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088

             Bug #: 52088
           Summary: [4.7 Regression] ICE in "delete" with template
                    convertion operator
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: lto
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org
                CC: flast@flast.jp
        Depends on: 48491
            Blocks: 48490


GCC ICEs with the following testcase

---- testcase.C ----
struct S
{
    template < typename T >
    operator T *() { return 0; }
};

int main()
{
    S s;
    delete s;
}
---

GNU C++ (GCC) version 4.7.0 20120123 (experimental) [trunk revision 183458]
(x86_64-unknown-linux-gnu)
t7881.cc: In function ‘int main()’:
t7881.cc:10:12: warning: possible problem detected in invocation of delete
operator: [enabled by default]
t7881.cc:10:12: warning: invalid use of template type parameter ‘T’ [enabled by
default]
t7881.cc:10:12: note: neither the destructor nor the class-specific operator
delete will be called, even if they are declared when the class is defined
t7881.cc:10:12: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2012-02-06 19:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-02  0:54 [Bug c++/52088] New: [4.7 Regression] ICE in "delete" with template convertion operator pinskia at gcc dot gnu.org
2012-02-02  0:55 ` [Bug c++/52088] " pinskia at gcc dot gnu.org
2012-02-02 10:35 ` rguenth at gcc dot gnu.org
2012-02-02 13:55 ` jakub at gcc dot gnu.org
2012-02-06  8:36 ` jason at gcc dot gnu.org
2012-02-06 19:53 ` jason at gcc dot gnu.org
2012-02-06 19:54 ` jason 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).