http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Summary|[C++11Spurious |[C++11] Spurious |-Wuninitialized warning for |-Wuninitialized warning for |member with NSDMI |member with NSDMI --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-06 16:52:00 UTC --- $ g++-4.7 -std=c++11 c.cc -c -Wuninitialized -c c.cc: In instantiation of 'class Range<int, 0>': c.cc:7:15: required from here c.cc:4:19: warning: non-static const member 'const int Range<int, 0>::min' in class without a constructor [-Wuninitialized] The test in class.c:check_bases_and_members doesn't appear to look for NSDMIs