[Bug c++/83797] Inconsistent error messages for main

2019-08-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 --- Comment #6 from Marek Polacek --- *** Bug 83798 has been marked as a duplicate of this bug. ***

[Bug c++/83797] Inconsistent error messages for main

2019-04-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > FWIW the C front-end highlights the function name not the return type: > > vm.c:1:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] > void main() { }

[Bug c++/83797] Inconsistent error messages for main

2019-04-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > Another related problem is that this should highlight the return type, not > the closing paren: > > vm.cc:1:11: error: ‘::main’ must return ‘int’ > void mai

[Bug c++/83797] Inconsistent error messages for main

2019-04-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 --- Comment #3 from Jonathan Wakely --- Another related problem is that this should highlight the return type, not the closing paren: vm.cc:1:11: error: ‘::main’ must return ‘int’ void main() { } ^

[Bug c++/83797] Inconsistent error messages for main

2019-04-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2018-01-11 00:00:00 |2019-4-2 --- Comment #2 from Jonathan

[Bug c++/83797] Inconsistent error messages for main

2018-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83797 Martin Sebor changed: What|Removed |Added Keywords||diagnostic, easyhack Status|U