This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52369] Const-qualified non-class base member and defaulted default constructor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Feb 2012 14:17:17 +0000
- Subject: [Bug c++/52369] Const-qualified non-class base member and defaulted default constructor
- Auto-submitted: auto-generated
- References: <bug-52369-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52369
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-24 14:17:17 UTC ---
With 4.6.2 and -Wall gives the same as 4.7.0:
l.cc:4:13: warning: non-static const member 'const int B::v_' in class without
a constructor [-Wuninitialized]
l.cc: In function 'int main()':
l.cc:13:5: warning: unused variable 'd' [-Wunused-variable]
4.5.2 gives the same (except doesn't print the [-W...] info after the warnings)