------- Comment #8 from pzhao at gcc dot gnu dot org 2010-06-08 03:56 ------- Subject: Bug 37724
Author: pzhao Date: Tue Jun 8 03:56:40 2010 New Revision: 160418 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160418 Log: gcc/ 2010-06-08 Andrew Pinski <pins...@gmail.com> Shujing Zhao <pearly.z...@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 <pins...@gmail.com> Shujing Zhao <pearly.z...@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. Added: trunk/gcc/testsuite/gcc.dg/init-bad-7.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/c90-const-expr-10.c trunk/gcc/testsuite/gcc.dg/c99-const-expr-10.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37724