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

Nikola Smiljanić <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #1 from Nikola Smiljanić <[email protected]> ---
r208386 gives:
test.cpp:1:30: error: void function 'f' should not return a value
[-Wreturn-type]
template<typename T> T f() { return "Cause Error"; }
                             ^      ~~~~~~~~~~~~~
test.cpp:2:32: note: in instantiation of function template specialization
'f<void>' requested here
void g(void (*)() = []{ return f<void>(); });
                               ^

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