avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] FW: c/9100: illegal binary constant causes gcc to seg


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] FW: c/9100: illegal binary constant causes gcc to seg fault
Date: Thu, 2 Jan 2003 15:02:13 +0100 (MET)

"Sander Pool" <address@hidden> wrote:

> I just logged a defect against gcc as it crashes when I try to use binary
> constants. Contrary to my bug report my code is actually legal, I'm pretty
> sure :-)

What makes you believe that 0b11111000 would make up a valid C number?
It doesn't.  C only knows about decimal, hexadecimal, and octal
constants.

> pin_test.c:40:61: invalid suffix "b11111000" on integer constant

That error message is totally clear and correct.

> pin_test.c: In function `__vector_16':
> pin_test.c:40: internal compiler error: Segmentation fault

Sure, the compiler should not segfault in this situation, anyway.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]