[LLVMbugs] [Bug 12938] New: error when specializing a function template with different attributes
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 24 12:15:59 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12938
Bug #: 12938
Summary: error when specializing a function template with
different attributes
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P
Component: C++
AssignedTo: dblaikie at gmail.com
ReportedBy: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code:
template<typename> void func() [[noreturn]];
template<> void func<int>();
Fails with the following error:
spec.cpp:2:17: error: no function template matches function template
specialization 'func'
template<> void func<int>() {
^
With the GCC attribute syntax, GCC 4.7 accepts this. It seems reasonable to do
so.
--
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