https://llvm.org/bugs/show_bug.cgi?id=23526
Bug ID: 23526
Summary: Clang fails to apply const to a function typedef.
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang fails to ignore cv-qualifiers that are applied to a function declarator.
It also generates a very weird resulting type.
example:
typedef void MyFunc();
static_assert(std::is_same<MyFunc, MyFunc const>::value, ""); // fires.
template <class Tp>
struct PrintType;
PrintType<MyFunc const> p;
// Prints "implicit instantiation of undefined template 'PrintType<void
(const()>'"
--
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