public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31476]  New: There is not way to specify a binary constant
@ 2007-04-04 21:49 ftwilliam at gmail dot com
  2007-04-04 21:52 ` [Bug c/31476] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ftwilliam at gmail dot com @ 2007-04-04 21:49 UTC (permalink / raw)
  To: gcc-bugs

the following do not work when compiling using gcc

char b = 00000010b;

changing it to

char b = 0b00000010;

still don't work I get instead
invalid suffix "b" on integer constant

Sometime it is trivial to just use a binary representation of constant rather
than an hexadecimal or octal representation.

Is it in purpose that such a feature was not implemented with gcc?

Please let me know.

Sincerely,
William Tambe


-- 
           Summary: There is not way to specify a binary constant
           Product: gcc
           Version: new-ra
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ftwilliam at gmail dot com


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/31476] There is not way to specify a binary constant
  2007-04-04 21:49 [Bug c/31476] New: There is not way to specify a binary constant ftwilliam at gmail dot com
@ 2007-04-04 21:52 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-04 21:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-04-04 22:51 -------
The reason why GCC does not have this feature is because it is a non standard
feature and GCC just has not implemented it yet.

Anyways this is the same as PR 23479.

*** This bug has been marked as a duplicate of 23479 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-04 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04 21:49 [Bug c/31476] New: There is not way to specify a binary constant ftwilliam at gmail dot com
2007-04-04 21:52 ` [Bug c/31476] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).