[LLVMbugs] [Bug 15845] New: Clang accepts invalid code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 25 07:23:09 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15845
Bug ID: 15845
Summary: Clang accepts invalid code
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: iu.biryukov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I did ran clang++(from trunk) on source file of this single line of code:
int foo(xxx);
and this code got accepted with a warning:
0.cpp:1:9: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
int foo(xxx);
^~~
1 warning generated.
I believe this is a regression, since older versions of clang was reporting an
error on the same code:
0.cpp:1:7: error: unknown type name 'xxx'
int foo(xxx);
--
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/20130425/a02e467e/attachment.html>
More information about the llvm-bugs
mailing list