public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98690] New: unexpected "'removed_return.213' may be used uninitialized in this function" causes crash
@ 2021-01-14 19:48 savoiu at yahoo dot com
  2021-01-15  8:29 ` [Bug ipa/98690] [10/11 Regression] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: savoiu at yahoo dot com @ 2021-01-14 19:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98690

            Bug ID: 98690
           Summary: unexpected "'removed_return.213' may be used
                    uninitialized in this function" causes crash
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: savoiu at yahoo dot com
  Target Milestone: ---

Created attachment 49968
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49968&action=edit
code exhibiting bug

When compiling the attached code I get:

error: 'removed_return.213' may be used uninitialized in this function
[-Werror=maybe-uninitialized]

and the error points to the 'endl' in that line.

If I downgrade the "maybe-uninitialized" to just a warning then it compiles but
the code crashes on that line.

The command line is:

  g++ -fnon-call-exceptions -Wmaybe-uninitialized -O2 gcc10bug.cpp
gcc10bug_main.cpp

If I remove -fnon-call-exceptions the the code compiles and runs as expected.
The code also runs just fine with GCC 9.1.0.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-21 11:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 19:48 [Bug c++/98690] New: unexpected "'removed_return.213' may be used uninitialized in this function" causes crash savoiu at yahoo dot com
2021-01-15  8:29 ` [Bug ipa/98690] [10/11 Regression] " rguenth at gcc dot gnu.org
2021-01-15  8:40 ` [Bug ipa/98690] [10/11 Regression] unexpected "'removed_return.213' may be used uninitialized in this function" causes crash since r10-3311-gff6686d2e5f797d6 marxin at gcc dot gnu.org
2021-01-18 19:27 ` jamborm at gcc dot gnu.org
2021-01-19 10:34 ` cvs-commit at gcc dot gnu.org
2021-01-19 14:54 ` cvs-commit at gcc dot gnu.org
2021-01-21 11:58 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).