diff options
author | Shujing Zhao <pearly.zhao@oracle.com> | 2010-08-17 08:25:20 +0000 |
---|---|---|
committer | Shujing Zhao <pzhao@gcc.gnu.org> | 2010-08-17 08:25:20 +0000 |
commit | 51f4ec666943c03673484c21f621e1034550e4df (patch) | |
tree | b2173160d60dbebd4e1f80ea7c24c0016432cdc3 /gcc/fold-const.c | |
parent | 571d54deb6edc944f1e9f361302b2fa99b568d64 (diff) | |
download | gcc-51f4ec666943c03673484c21f621e1034550e4df.zip gcc-51f4ec666943c03673484c21f621e1034550e4df.tar.gz gcc-51f4ec666943c03673484c21f621e1034550e4df.tar.bz2 |
re PR c/40563 (-Wc++-compat does not warn about uninitialized const field in struct)
/gcc
2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
PR c/40563
* c-decl.c (diagnose_uninitialized_cst_member): New function.
(finish_decl): Use it to issue a -Wc++-compat warning about
uninitialized const field in struct or union.
(finish_struct): Use strip_array_types.
/gcc/testsuite
2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
PR c/40563
* gcc.dg/Wcxx-compat-20.c: New test.
From-SVN: r163296
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions