From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14162 invoked by alias); 3 Oct 2008 20:43:11 -0000 Received: (qmail 13811 invoked by uid 48); 3 Oct 2008 20:41:52 -0000 Date: Fri, 03 Oct 2008 20:43:00 -0000 Message-ID: <20081003204152.13810.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/37724] "initialization from incompatible pointer type" does not say which field is being initialized In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00281.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2008-10-03 20:41 ------- I have a patch which I am testing right now: Index: c-typeck.c =================================================================== --- c-typeck.c (revision 140850) +++ c-typeck.c (working copy) @@ -3994,7 +3994,7 @@ convert_for_assignment (tree type, tree pedwarn (LOCATION, OPT, AS); \ break; \ case ic_init: \ - pedwarn (LOCATION, OPT, IN); \ + pedwarn_init (LOCATION, OPT, IN); \ break; \ case ic_return: \ pedwarn (LOCATION, OPT, RE); \ --- CUT --- This does not fix C++ though, that is going to be harder. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-10-03 20:41:52 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37724