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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs