[Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 30 12:05:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list