[Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
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.
[Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67065 --- Comment #3 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #1) (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. Lol. Don't worry, GCC is still my favourite compiler bug generator. :P
[Bug c++/67065] Missing diagnostics for ill-formed program with main variable instead of function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67065 --- Comment #2 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #1) (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. Lol. Don't worry, GCC is still my favourite compiler bug generator. :P