[LLVMbugs] [Bug 10349] clang crashes when using template return type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 19 13:22:18 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=10349
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution| |FIXED
--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-11-19 15:22:18 CST ---
Right, we are now properly rejecting this.
template_foo.cpp:31:15: error: no matching function for call to
'type_constructor'
decltype( type_constructor( &Y::bar ) ) x(y);
^~~~~~~~~~~~~~~~
template_foo.cpp:18:6: note: candidate template ignored: substitution failure
[with T = Y]: non-type template
argument of type 'void (Y::*const)()' is not a constant expression
auto type_constructor( void (T::* const f)() ) -> X< T, f >;
^ ~
--
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