This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52369] Const-qualified non-class base member and defaulted default constructor


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]