cc1 chokes on x86

llewelly@dbritsch.dsl.xmission.com llewelly@dbritsch.dsl.xmission.com
Fri Jul 28 14:09:00 GMT 2000


"Kevin P. Neal" <kpneal@pobox.com> writes:

[snip]
> With this code:
> 
> void test_func(unsigned char val)
> {
>    printf("%x\n", val);
> 
>    return;
> }
> 
> int main(int argc, char **argv)
> {
>    test_func("000"[0] - '0' + 0xf0);
> 
>    return(0);
> }
> 
> I get the exact same error on Linux.
> 
[snip]

gcc 2.96 20000626 (experimental) compiles your code without errors, and
  the executable prints
  f0
  when run, so I think the bug is fixed.


Thank you for your bug report.


More information about the Gcc-bugs mailing list