public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/12743] New: Multi-line strings not diagnosed when occurring in a macro call
@ 2003-10-23 14:18 gabor dot greif at lucent dot com
  2003-10-24  6:16 ` [Bug preprocessor/12743] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: gabor dot greif at lucent dot com @ 2003-10-23 14:18 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=12743

           Summary: Multi-line strings not diagnosed when occurring in a
                    macro call
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gabor dot greif at lucent dot com
                CC: gcc-bugs at gcc dot gnu dot org

Compile this snippet:

----------------------
#define FOO(X) wagga X
    FOO(("kkkk
llll"));
----------------------

In gcc-3.4 I get these errors:

foo.C:100:1: unterminated argument list invoking macro "FOO"
foo.C:2: error: `FOO' undeclared (first use this function)
foo.C:2: error: (Each undeclared identifier is reported only once for each
function it appears in.)
foo.C:2: error: expected `;'
foo.C:2: error: expected `}'

Especially the first one is annoying, as it directs me to
the end of the file (which is usually far away :-)

In non-macro context multiline strings are correctly noted as an error.


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

end of thread, other threads:[~2004-03-13 15:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-23 14:18 [Bug preprocessor/12743] New: Multi-line strings not diagnosed when occurring in a macro call gabor dot greif at lucent dot com
2003-10-24  6:16 ` [Bug preprocessor/12743] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-10-24 12:55   ` Neil Booth
2003-10-24 13:02 ` neil at daikokuya dot co dot uk
2003-10-24 13:43 ` ggreif at lucent dot com
2003-10-24 15:28 ` jsm at polyomino dot org dot uk
2003-12-19  9:45 ` pinskia at gcc dot gnu dot org
2004-01-10 22:45 ` pinskia at gcc dot gnu dot org
2004-01-10 22:54 ` jsm at polyomino dot org dot uk
2004-01-10 23:08 ` pinskia at gcc dot gnu dot org
2004-01-12 23:39 ` steven at gcc dot gnu dot org
2004-02-28  3:29 ` [Bug preprocessor/12743] [3.4/3.5 " mmitchel at gcc dot gnu dot org
2004-02-28 10:32 ` neil at gcc dot gnu dot org
2004-03-13 15:06 ` neil at gcc dot gnu dot org
2004-03-13 15:14 ` jsm at polyomino dot org dot uk

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