------- Comment #33 from manu at gcc dot gnu dot org  2007-06-26 14:38 -------
(In reply to comment #31)
> Just mentioning: printf() and std::cout need to be updated if the binary 
> values
> are also to be *output*. Any ideas on how or where that is to be done?
> 

As Joerg pointed out, that is a library issue. Moreover, this is unrelated to
this bug since you wouldn't need to have binary constants in the compiler in
order to print integer constants in binary. That is, I guess you want something
like:

printf("%b", 2); /* Output: 10 */

but as the example shows you don't need binary constants to be able to print
integers in binary.

What this bug is about (and will appear in GCC 4.3) is to be able to write the
following:

printf("%d", 0b10); /* Output: 2 */

So if what you want is the first thing, then you need to write your own printf
or contact GNU libc developers: http://www.gnu.org/software/libc/bugs.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23479

Reply via email to