This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81508] Control reaches end of non-void function - warning not emmited when optimization is turned on
- From: "juraj.orsulic at fer dot hr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Jul 2017 17:33:41 +0000
- Subject: [Bug c++/81508] Control reaches end of non-void function - warning not emmited when optimization is turned on
- Auto-submitted: auto-generated
- References: <bug-81508-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81508
--- Comment #3 from Juraj Oršulić <juraj.orsulic at fer dot hr> ---
Update: tested on 7.1.0, bug doesn't happen there (i.e. building without
optimisation is successful).