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
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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 ` pinskia at gcc dot gnu.org
2012-02-02 10:35 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02 0:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.6.0
Blocks| |48491
Depends on|48491 |
Target Milestone|--- |4.7.0
Known to fail| |4.7.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-02 10:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|lto |
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-02-02
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-02 10:35:12 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-02 13:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-02 13:53:52 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183221 aka
PR51827 fix.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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
` (2 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-02-06 8:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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
` (3 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-02-06 19:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-06 19:52:47 UTC ---
Author: jason
Date: Mon Feb 6 19:52:43 2012
New Revision: 183940
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183940
Log:
PR c++/52088
* cvt.c (build_expr_type_conversion): Check for template conversion.
Added:
trunk/gcc/testsuite/g++.dg/template/conv13.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cvt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/52088] [4.7 Regression] ICE in "delete" with template convertion operator
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
` (4 preceding siblings ...)
2012-02-06 19:53 ` jason at gcc dot gnu.org
@ 2012-02-06 19:54 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-02-06 19:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52088
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-06 19:54:04 UTC ---
Fixed.
^ 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).