public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/90307] -Wuninitialized only at -O1, not at -O2
       [not found] <bug-90307-4@http.gcc.gnu.org/bugzilla/>
@ 2021-04-13 20:24 ` msebor at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: msebor at gcc dot gnu.org @ 2021-04-13 20:24 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |24639
      Known to fail|                            |10.3.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |11.0
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
GCC warns in both -O1 and -O2 since r11-7940.  The IL shows the ctor is inlined
now which is what makes the warning possible.  Defining the ctor outside the
class  keeps GCC from inlining it which in turn defeats the warning as one
might expect.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-13 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90307-4@http.gcc.gnu.org/bugzilla/>
2021-04-13 20:24 ` [Bug tree-optimization/90307] -Wuninitialized only at -O1, not at -O2 msebor 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).