http://llvm.org/bugs/show_bug.cgi?id=15423
Bug ID: 15423
Summary: type overloading does not strip function attributes
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 10127
--> http://llvm.org/bugs/attachment.cgi?id=10127&action=edit
instantiation.cc
When performing template type instantations, function attributes need to be
stripped to allow for proper template instantation. The following example
helps indicate this.
In particular, the make_thunk template specialisation fails as there are two
template specialisations available (one for the const and one for the non-const
version). The __attribute__ (( noreturn )) is considered part of the templated
type, which does not have a template specialisation, and so the template
instantiation fails.
--
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