[Bug c++/83798] Enhancement to Wmain warnings

2019-08-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83798

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||mpolacek at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #2 from Marek Polacek  ---
No feedback, so closing as a dup.

*** This bug has been marked as a duplicate of bug 83797 ***

[Bug c++/83798] Enhancement to Wmain warnings

2018-01-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83798

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||diagnostic
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-11
 Ever confirmed|0   |1

--- Comment #1 from Jonathan Wakely  ---
(In reply to denis.campredon from comment #0)
> In the first three warnings, just '::main' should be displayed, like when
> compiled with gcc, instead of the full signature.

What do you mean "when compiled with gcc"?

The C front-end doesn't print "::main" because there is no :: scope resolution
operator in C, and for C++ there's no difference in diagnostics whether you
invoke gcc or g++.

Do you just mean like the cases in PR 83797?