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

Richard Smith <[email protected]> changed:

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

--- Comment #3 from Richard Smith <[email protected]> 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to