[LLVMbugs] [Bug 24309] New: Missing diagnostics for ill-formed program with main variable instead of function
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 29 17:40:28 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24309
Bug ID: 24309
Summary: Missing diagnostics for ill-formed program with main
variable instead of function
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: anders.granlund.0 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following program is ill-formed (proc.cc):
int main;
Compile it with the following command line:
clang++ prog.cc -std=c++14 -pedantic-errors
No error messages are given. Since the program is ill-formed I expected to get
at least one error message.
--
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/20150730/0d753e7a/attachment.html>
More information about the llvm-bugs
mailing list