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++/25137] Warning "missing braces around initializer" causing problems with tr1::array


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

--- Comment #19 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-28 17:42:34 UTC ---
Author: paolo
Date: Mon May 28 17:42:29 2012
New Revision: 187937

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187937
Log:
/c-family
2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/25137
    * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
    -Wmissing_braces.

2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/25137
    * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
    for C++.

/testsuite
2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/25137
    * g++.dg/warn/Wbraces3.C: New.
    * g++.dg/warn/Wbraces4.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wbraces3.C
    trunk/gcc/testsuite/g++.dg/warn/Wbraces4.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-opts.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog


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