public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/51745] New: Strange symbol appears when using commandline definition without "="
@ 2012-01-03 21:42 mikulas at artax dot karlin.mff.cuni.cz
  2012-01-03 21:48 ` [Bug preprocessor/51745] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mikulas at artax dot karlin.mff.cuni.cz @ 2012-01-03 21:42 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51745
           Summary: Strange symbol appears when using commandline
                    definition without "="
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikulas@artax.karlin.mff.cuni.cz
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: i686-pc-linux-gnu


If we use -D definition without "=" in the command line, strange unwanted
symbol "1" appears in the output.

How to reproduce: run gcc -E - -o - "-Dblabla(x, y) bleble[x,y]"
Type blabla(2,3) and press Ctrl-D.
The output is: bleble[2,3] 1
The symbol "1" was never defined anywhere. There is something strange going on
in the commandline parsing. Such syntax without "=" should be either rejected
with an error or it should be processed correctly.


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

end of thread, other threads:[~2012-01-10 18:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03 21:42 [Bug preprocessor/51745] New: Strange symbol appears when using commandline definition without "=" mikulas at artax dot karlin.mff.cuni.cz
2012-01-03 21:48 ` [Bug preprocessor/51745] " redi at gcc dot gnu.org
2012-01-04 10:22 ` rguenth at gcc dot gnu.org
2012-01-04 11:10 ` jakub at gcc dot gnu.org
2012-01-10 18:59 ` mikulas at artax dot karlin.mff.cuni.cz

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).