[LLVMbugs] [Bug 23526] New: Clang fails to apply const to a function typedef.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 14 11:25:25 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150514/2e10ce49/attachment.html>
More information about the llvm-bugs
mailing list