[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2011-07-01 16:19:27 UTC --- The C++ standard lists the contexts in which an overloaded function name can be used without arguments, and reinterpret_cast is not one of them. Based on

[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2011-07-01 16:34:32 UTC --- (In reply to comment #1) The C++ standard lists the contexts in which an overloaded function name can be used without arguments, and reinterpret_cast is

[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread srk31 at srcf dot ucam.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 --- Comment #4 from Stephen Kell srk31 at srcf dot ucam.org 2011-07-01 18:09:07 UTC --- (In reply to comment #2) That paragraph says that if template argument deduction succeeds then an instantiation is generated. In your case deduction doesn't

[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2011-07-01 18:56:19 UTC --- (In reply to comment #3) That's a pretty strained reading. Even if that were pedantically what the standard says, it would clearly be an oversight. ok,

[Bug c++/49609] No code emitted for address-taken instances of function templates

2011-07-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609 --- Comment #6 from Jason Merrill jason at gcc dot gnu.org 2011-07-01 20:24:15 UTC --- Author: jason Date: Fri Jul 1 20:24:08 2011 New Revision: 175764 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=175764 Log: PR c++/48883 PR