Wcxx-compat-20.c
626 Bytes
-
re PR c/40563 (-Wc++-compat does not warn about uninitialized const field in struct) · 51f4ec66
/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
Shujing Zhao committed