This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Jul 2015 12:05:41 +0000
- Subject: [Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
- Auto-submitted: auto-generated
- References: <bug-67065-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67065
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-07-30
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Anders Granlund from comment #0)
> 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
Erm :-)
It fails with G++ too though.