This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54058] Injected friend functions are not considered when using contextual type info to take a function address
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 21:51:30 +0000
- Subject: [Bug c++/54058] Injected friend functions are not considered when using contextual type info to take a function address
- Auto-submitted: auto-generated
- References: <bug-54058-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54058
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-20 21:51:30 UTC ---
I think G++ is correct. The injected functions can only be found by ADL and ADL
only applies to function calls, not when taking the address of a function.