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

2023-02-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22020 Andrew Pinski changed: What|Removed |Added CC||jankowski938 at gmail dot com ---

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

2008-11-30 Thread ebotcazou 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. --

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

2005-07-28 Thread david at gibson dot dropbear dot id dot au
--- Additional Comments From david at gibson dot dropbear dot id dot au 2005-07-28 12:37 --- This is arguably a real functionality bug, not just a poor diagnostic. The compiler will refuse to allow such a truncated address as an initializer, even when the assembler can generate the

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

2005-06-11 Thread ebotcazou at gcc dot gnu dot org
-- What|Removed |Added Summary|Poor error message for |Poor error message for |invalid cast in initializer |invalid cast in constant

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

2005-06-11 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-11 19:38 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW