[Bug middle-end/33696] New: [4.3 Regression] Type checking error with unary minus and subtraction
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 8 12:46:00 GMT 2007
typedef unsigned char uint8_t;
typedef unsigned int uint_least32_t;
extern int foo (long int __off);
void write (uint_least32_t chunk_len)
{
uint8_t tmp[4];
foo (-(long)chunk_len - sizeof(tmp));
}
smm.3.min.ii: In function 'write':
smm.3.min.ii:5: error: type mismatch in binary expression
long unsigned int
long unsigned int
long int
D.1197 = 4294967292 - chunk_len.0
smm.3.min.ii:5: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: [4.3 Regression] Type checking error with unary minus
and subtraction
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, ice-checking
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33696
More information about the Gcc-bugs
mailing list