c99-const-expr-10.c
947 Bytes
-
re PR c/37724 ("initialization from incompatible pointer type" does not say… · 6a8f4e12
re PR c/37724 ("initialization from incompatible pointer type" does not say which field is being initialized) gcc/ 2010-06-08 Andrew Pinski <pinskia@gmail.com> Shujing Zhao <pearly.zhao@oracle.com> PR c/37724 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the implicit bad conversions is initialization. (error_init): Use gmsgid instead of msgid for argument name and change the call for error. (pedwarn_init): Use gmsgid instead of msgid for argument name and change the call for pedwarn. (warning_init): Use gmsgid instead of msgid for argument name and change the call for warning. gcc/testsuite/ 2010-06-08 Andrew Pinski <pinskia@gmail.com> Shujing Zhao <pearly.zhao@oracle.com> PR c/37724 * gcc.dg/c90-const-expr-10.c: Adjust. * gcc.dg/c99-const-expr-10.c: Adjust. * gcc.dg/init-bad-7.c: New. From-SVN: r160418
Andrew Pinski committed