Converting float to _Bool causes an internal compiler error
SDCC 4.7.0 Release
Thanks for reviewing the fix. Committed as [r17350].
Fix ICE when converting float to _Bool (bug #4315)
SDCC 4.7.0 Release
Here's Codex's own account of its questionable choices: The first candidate checked the assignment in decorateType, where both operand types are available. It diagnosed the reproducer, but used error 47 (“indirections to different types”). SDCC already has warning 155 (“converting pointer to integral without a cast”), which describes the problem precisely. The patch also changed the handling of _Bool, a separate issue. The second candidate addressed the missed warning during iCode generation. For...
Assignment of a pointer to an int goes undiagnosed
I'm attaching a replacement candidate patch. This one passes all regression tests: Summary for 'ucz80' : 0 failures, 37683 tests, 6585 test cases, 7542963 bytes, 1543068513 ticks It also passes valdiag tests on all targets including z80: Summary for 'z80' : 0 failures, 1958 tests, 1484 test cases, 0 bytes, 0 ticks Please can another developer review the revised candidate fix? It's a small and self-contained change to produce NE_OP instead of CAST in the geniCodeCast function, in the specific case...