This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22020] poor error message for invalid cast in constant initializer
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2008 09:21:19 -0000
- Subject: [Bug c/22020] poor error message for invalid cast in constant initializer
- References: <bug-22020-226@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from ebotcazou at gcc dot gnu dot org 2008-11-30 09:21 -------
A little better with the current 4.4.0 compiler:
t.c:3: warning: cast from pointer to integer of different size
t.c:3: error: initializer element is not constant
but not as good as with the Sun compiler.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-11-08 03:29:13 |2008-11-30 09:21:18
date| |
Summary|Poor error message for |poor error message for
|invalid cast in constant |invalid cast in constant
|initializer |initializer
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22020