[Bug c/25183] [4.0/4.1/4.2 Regression] internal compiler error triggered by overflow in constant expression
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 2 14:29:00 GMT 2006
------- Comment #7 from rguenth at gcc dot gnu dot org 2006-01-02 14:29 -------
One possible fix would be to make
error.h:8: warning: ISO C restricts enumerator values to range of 'int'
an error instead of a warning in case of -pedantic (or always). Testing a
patch
to deal with TREE_OVERFLOW in add_case_node instead. Which raises the question
of the desired semantics of the testcase. With one "fix" I get
error:
pushl %ebp
movl %esp, %ebp
movl $0, %eax
leave
ret
i.e. different code with -pendantic, with another fix
to simply clear the overflow flag the same code as without -pedantic is
emitted.
I'll bootstrap/test the 2nd variant.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-11-30 16:17:10 |2006-01-02 14:29:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25183
More information about the Gcc-bugs
mailing list