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++/38980] [4.4/4.5/4.6/4.7 Regression] missing -Wformat warning on const char format string


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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-09 23:20:43 UTC ---
Author: paolo
Date: Sun Oct  9 23:20:39 2011
New Revision: 179731

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179731
Log:
/cp
2011-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/38980
    * init.c (constant_value_1): Add bool parameter.
    (decl_constant_value_safe): Add.
    (integral_constant_value): Adjust.
    (decl_constant_value): Adjust.
    * cp-tree.h (decl_constant_value_safe): Declare.
    * typeck.c (decay_conversion): Use decl_constant_value_safe.
    * call.c (convert_like_real): Likewise.

/testsuite
2011-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/38980
    * g++.dg/warn/format5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/format5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


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