public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48490] New: "delete" with template convertion operator does overload resolution for class operands, but shouldn't.
@ 2011-04-07 12:41 flast at flast dot jp
2012-02-06 20:01 ` [Bug c++/48490] " jason at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: flast at flast dot jp @ 2011-04-07 12:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48490
Summary: "delete" with template convertion operator does
overload resolution for class operands, but shouldn't.
Product: gcc
Version: 4.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: flast@flast.jp
GCC accepts following code. But it should be reject.
---- testcase.C ----
struct S
{
template < typename T >
operator T *() { return 0; }
};
int main()
{
S s;
delete s;
}
----
All of following versions accept it.
Ubuntu/Linaro 4.4.4-14ubuntu5
4.5.2
4.5.3 20110217
4.6.0
4.6.1 20110310
4.7.0 20110405
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/48490] "delete" with template convertion operator does overload resolution for class operands, but shouldn't.
2011-04-07 12:41 [Bug c++/48490] New: "delete" with template convertion operator does overload resolution for class operands, but shouldn't flast at flast dot jp
@ 2012-02-06 20:01 ` jason at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jason at gcc dot gnu.org @ 2012-02-06 20:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48490
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-06 20:01:04 UTC ---
Fixed by patch for PR52088.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-06 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07 12:41 [Bug c++/48490] New: "delete" with template convertion operator does overload resolution for class operands, but shouldn't flast at flast dot jp
2012-02-06 20:01 ` [Bug c++/48490] " 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).