public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53212] New: cpp consumes comment after pragma
@ 2012-05-03 13:06 ludo at gnu dot org
  2024-03-16 21:18 ` [Bug preprocessor/53212] " pinskia at gcc dot gnu.org
  2024-03-16 21:19 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ludo at gnu dot org @ 2012-05-03 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53212
           Summary: cpp consumes comment after pragma
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ludo@gnu.org


Consider this program:

  int foo ()
  {
  #pragma foo bar /* this is a comment */
  }

"gcc -C -E the-file.c" consumes the comment, whereas it should leave it as is.


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

* [Bug preprocessor/53212] cpp consumes comment after pragma
  2012-05-03 13:06 [Bug c/53212] New: cpp consumes comment after pragma ludo at gnu dot org
@ 2024-03-16 21:18 ` pinskia at gcc dot gnu.org
  2024-03-16 21:19 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 21:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53212

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, clang has the same behavior here ...
I don't know if it is the right one though.

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

* [Bug preprocessor/53212] cpp consumes comment after pragma
  2012-05-03 13:06 [Bug c/53212] New: cpp consumes comment after pragma ludo at gnu dot org
  2024-03-16 21:18 ` [Bug preprocessor/53212] " pinskia at gcc dot gnu.org
@ 2024-03-16 21:19 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 21:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53212

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-03-16
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
ICC/EDG on the other hand includes the comment.

So confirmed.

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

end of thread, other threads:[~2024-03-16 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03 13:06 [Bug c/53212] New: cpp consumes comment after pragma ludo at gnu dot org
2024-03-16 21:18 ` [Bug preprocessor/53212] " pinskia at gcc dot gnu.org
2024-03-16 21:19 ` pinskia at gcc dot gnu.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).