[LLVMbugs] [Bug 18400] New: Underlying type of an enum class doesn't discard cv-qualifiers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jan 6 11:22:24 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18400
Bug ID: 18400
Summary: Underlying type of an enum class doesn't discard
cv-qualifiers
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: ville.voutilainen at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
enum class IDontDiscardQualifiers : int const volatile { };
int main()
{
static_assert(is_same<underlying_type<IDontDiscardQualifiers>::type,
int>::value, "");
}
gcc accepts this, as it discards the const from the underlying type, clang
doesn't.
--
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/20140106/d378283e/attachment.html>
More information about the llvm-bugs
mailing list