[LLVMbugs] [Bug 10310] function-within-namespace lookup bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 8 08:09:49 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Douglas Gregor <dgregor at apple.com> 2011-07-08 10:09:48 CDT ---
Clang is behaving correctly, because your new_clone function is neither visible
in the template definition nor found through ADL. This is a common
compatibility issue (because other compilers get it wrong), documented here:


Besides, the error Clang is providing describes *exactly* what the code is
doing wrong, and the note specifies how to fix it.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list