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

Reply via email to