http://llvm.org/bugs/show_bug.cgi?id=11179
Aaron Ballman <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |WORKSFORME --- Comment #1 from Aaron Ballman <[email protected]> 2012-02-11 17:21:18 CST --- Works in ToT (r150306) c:\llvm>clang -fsyntax-only -std=c++11 "C:\Users\Aaron Ballman\Desktop\test.cpp" C:\Users\Aaron Ballman\Desktop\test.cpp:10:3: error: no matching function for call to 'g' g(X<42>()); ^ C:\Users\Aaron Ballman\Desktop\test.cpp:6:13: note: candidate function [with T = 42] not viable: no known conversion from 'X<42>' to 'X<42> &' for 1st argument; inline void g(X<T>& x) { ^ 1 error generated. I get the same error in gcc. -- 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
