[LLVMbugs] [Bug 10053] [QoI] diagnostic in case of two-stage name lookup-related errors could be better
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jun 5 15:44:34 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10053
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> 2011-06-05 17:44:33 CDT ---
Fixed in r132672. We now produce:
my_file.cpp:2:10: error: call to function 'Multiply' that is neither visible
in the template definition nor found by argument dependent lookup
return Multiply(x, x);
^
my_file.cpp:10:3: note: in instantiation of function template specialization
'Squared<int>' requested here
Squared(5);
^
my_file.cpp:5:5: note: 'Multiply' should be declared prior to the call site
int Multiply(int x, int y) {
^
--
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