public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/12075] non-terminated quotes within #if'ed out text comments confuse preprocessor
       [not found] <bug-12075-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-08 22:58 ` pinskia at gcc dot gnu.org
  2021-10-15 20:22 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-08 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jg at jguk dot org

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-08 22:58:18 UTC ---
*** Bug 50668 has been marked as a duplicate of this bug. ***


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

* [Bug preprocessor/12075] non-terminated quotes within #if'ed out text comments confuse preprocessor
       [not found] <bug-12075-4@http.gcc.gnu.org/bugzilla/>
  2011-10-08 22:58 ` [Bug preprocessor/12075] non-terminated quotes within #if'ed out text comments confuse preprocessor pinskia at gcc dot gnu.org
@ 2021-10-15 20:22 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-15 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---


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

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

* [Bug preprocessor/12075] non-terminated quotes within #if'ed out text comments confuse preprocessor
  2003-08-27  9:14 [Bug preprocessor/12075] New: " andi at lisas dot de
@ 2003-08-27  9:54 ` ehrhardt at mathematik dot uni-ulm dot de
  0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt at mathematik dot uni-ulm dot de @ 2003-08-27  9:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


ehrhardt at mathematik dot uni-ulm dot de changed:

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


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2003-08-27 09:54 -------
Decomposing a file into preprocessing tokens is translations phase 3.
Preprocessing directives are executed in translation phase 4. This
means that even if text is skipped via #if 0 it must be a sequence of
preprocessing tokens.
In your example the double quote can not start a string constant
because a string constant must not contain a newline character (6.4.5[1]).
Note: This was accepted by older versions of gcc as an extension.
Hence the dobule quote character must be a preprocessing token of its own.
This invokes undefined behaviour (6.4[3]).

   regards  Christian


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

end of thread, other threads:[~2021-10-15 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-12075-4@http.gcc.gnu.org/bugzilla/>
2011-10-08 22:58 ` [Bug preprocessor/12075] non-terminated quotes within #if'ed out text comments confuse preprocessor pinskia at gcc dot gnu.org
2021-10-15 20:22 ` pinskia at gcc dot gnu.org
2003-08-27  9:14 [Bug preprocessor/12075] New: " andi at lisas dot de
2003-08-27  9:54 ` [Bug preprocessor/12075] " ehrhardt at mathematik dot uni-ulm dot de

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