This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81777] Compiler doesn't detect wrong function declaration
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Aug 2017 07:21:04 +0000
- Subject: [Bug c/81777] Compiler doesn't detect wrong function declaration
- Auto-submitted: auto-generated
- References: <bug-81777-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes this is because this is not required to issue a diagnostic at compile time.
Also there is no real way. -flto is able to diagnose this though due to having
all the information while linking.