[Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 06:55:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:54:12 UTC ---
Author: jakub
Date: Mon Jun 25 06:54:08 2012
New Revision: 188926

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188926
Log:
    PR c++/53594
    * class.c (check_bases_and_members): Avoid -Wuninitialized
    diagnostics for non-static const members or references if they
    use NSDMI.

    * g++.dg/cpp0x/nsdmi7.C: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/nsdmi7.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/class.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list