http://llvm.org/bugs/show_bug.cgi?id=8020
Serge Pavlov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #2 from Serge Pavlov <[email protected]> --- Current version (190531) gives better message: $ cat pr8020.cpp template <typename T> struct X { X() {} }; template<> struct X<int> { X(); }; template X<int>::X() {} $ clang pr8020.cpp pr8020.cpp:3:22: error: function cannot be defined in an explicit instantiation; if this declaration is meant to be a function definition, remove the 'template' keyword template X<int>::X() {} ^ 1 error generated. -- 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
