[LLVMbugs] [Bug 7209] Seek out invalid candidates that GCC would find when overload resolution fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 31 08:47:33 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=7209

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2011-10-31 10:47:33 CDT ---
This is fixed in top-of-tree Clang:


t.cpp:10:15: error: call to function 'operator<<' that is neither visible in
the
      template definition nor found by argument-dependent lookup
    std::clog << t;
              ^
t.cpp:15:17: note: in instantiation of function template specialization
      'log<N::X>' requested here
  template void log(const X&);
                ^
t.cpp:13:17: note: 'operator<<' should be declared prior to the call site or in
      namespace 'N'
  std::ostream &operator<<(std::ostream&, const X& x);

-- 
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