This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/22020] poor error message for invalid cast in constant initializer



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]