public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/28709]  New: [4.0/4.1/4.2 regression] Bad diagnostic pasting tokens with ##
@ 2006-08-13 20:58 reichelt at gcc dot gnu dot org
  2006-08-13 20:58 ` [Bug preprocessor/28709] " reichelt at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-13 20:58 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet generates a bogus error message since
GCC 3.1:

==========================
#define foo - ## >>
foo;
==========================

bug.c:2:1: error: pasting "->" and ">>" does not give a valid preprocessing
token
bug.c:2: error: expected identifier or '(' before '->' token

The problem is that we tried to paste "-" and ">>" and not "->" and ">>".
GCC 3.0.x produced a correct diagnostic.


-- 
           Summary: [4.0/4.1/4.2 regression] Bad diagnostic pasting tokens
                    with ##
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-07-04 15:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-13 20:58 [Bug preprocessor/28709] New: [4.0/4.1/4.2 regression] Bad diagnostic pasting tokens with ## reichelt at gcc dot gnu dot org
2006-08-13 20:58 ` [Bug preprocessor/28709] " reichelt at gcc dot gnu dot org
2006-08-13 20:59 ` pinskia at gcc dot gnu dot org
2006-08-16 16:19 ` jakub at gcc dot gnu dot org
2006-08-20 22:39 ` mmitchel at gcc dot gnu dot org
2006-10-11 22:30 ` mmitchel at gcc dot gnu dot org
2006-10-12  9:26 ` jakub at gcc dot gnu dot org
2006-10-23 20:41 ` [Bug preprocessor/28709] [4.0/4.1 " reichelt at gcc dot gnu dot org
2006-12-28  4:23 ` tromey at gcc dot gnu dot org
2007-01-01 21:57 ` patchapp at dberlin dot org
2007-02-03 18:54 ` gdr at gcc dot gnu dot org
2007-02-03 20:54 ` pinskia at gcc dot gnu dot org
2007-02-14  9:15 ` mmitchel at gcc dot gnu dot org
2007-03-07  0:50 ` ahs3 at fc dot hp dot com
2007-03-07  0:59 ` pinskia at gcc dot gnu dot org
2007-03-07 18:43 ` ahs3 at fc dot hp dot com
2007-03-07 21:40 ` pinskia at gcc dot gnu dot org
2007-04-25  0:29 ` tromey at gcc dot gnu dot org
2007-05-02 19:34 ` tromey at gcc dot gnu dot org
2007-05-02 19:34 ` tromey at gcc dot gnu dot org
2007-06-26 11:44 ` jakub at gcc dot gnu dot org
2008-07-04 15:50 ` [Bug preprocessor/28709] [4.1 " jsm28 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).