https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91215
--- Comment #5 from Sebastien Boisvert ---
OK, thanks for the link, this is interesting.
A previous release, g++ 7.4.0, does not generate an infinite loop in the
executable. Like g++ 8.3.0, it does print the warning: no return statement in
funct
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91215
--- Comment #3 from Sebastien Boisvert ---
That was fast, thanks !
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91215
--- Comment #1 from Sebastien Boisvert ---
As indicated in the minimum reproducer, returning 0 fixed this bug.
g++ reports this warning:
g++-8.3.0-infinite-loop-bug.cpp: In function 'int doY()':
g++-8.3.0-infinite-loop-bug.cpp:20:1: warning: no
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sboisvert at gydle dot com
Target Milestone: ---
Created attachment 46614
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46614&action=edit
Minimum reproducer C++ source code