[llvm-bugs] [Bug 28539] New: a bug: not support unsigned int(0), but support int(0)
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 13 08:17:07 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28539
Bug ID: 28539
Summary: a bug: not support unsigned int(0), but support int(0)
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: wuzili1234 at 163.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
void test()
{
int n = unsigned int(0);
}
------------------------------------------------------
The above c++ code will cause compile error: "expected '(' for function-style
cast or type construction".
But same code work good in msvc(visual studio 2005 or above).
And int(0) or unsigned(0) is ok.
It seems that the clang method [Parser::ParseCXXSimpleTypeSpecifier] only parse
one word.
Hope to solve it.
--
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/20160713/ee965f5f/attachment.html>
More information about the llvm-bugs
mailing list