public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25773]  New: Preprocessor concatenation of forward-slash fails
@ 2006-01-12 18:56 SSacek at appsecinc dot com
  2006-01-12 19:00 ` [Bug c++/25773] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: SSacek at appsecinc dot com @ 2006-01-12 18:56 UTC (permalink / raw)
  To: gcc-bugs

The code below fails to preprocess correctly. Shouldn't it handle this simple
case correctly?  VC++ produces the expected results.

#define COMMENT   /##/

void main( void )
{
   COMMENT   this line should be commented out
}


-- 
           Summary: Preprocessor concatenation of forward-slash fails
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: SSacek at appsecinc dot com


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


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

* [Bug c++/25773] Preprocessor concatenation of forward-slash fails
  2006-01-12 18:56 [Bug c++/25773] New: Preprocessor concatenation of forward-slash fails SSacek at appsecinc dot com
@ 2006-01-12 19:00 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 19:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-12 19:00 -------
VC++ is wrong, there is no preprocessing token for "//"
GCC is right in saying:
t5.cc:5:1: error: pasting "/" and "/" does not give a valid preprocessing token


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-01-12 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 18:56 [Bug c++/25773] New: Preprocessor concatenation of forward-slash fails SSacek at appsecinc dot com
2006-01-12 19:00 ` [Bug c++/25773] " 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).