This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37724] "initialization from incompatible pointer type" does not say which field is being initialized
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2008 20:41:52 -0000
- Subject: [Bug c/37724] "initialization from incompatible pointer type" does not say which field is being initialized
- References: <bug-37724-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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