public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fang at csl dot cornell dot edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/31182] preprocessor doubles up digits in token pasting Date: Thu, 15 Mar 2007 04:35:00 -0000 [thread overview] Message-ID: <20070315043535.27073.qmail@sourceware.org> (raw) In-Reply-To: <bug-31182-14249@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from fang at csl dot cornell dot edu 2007-03-15 04:35 ------- Subject: Re: preprocessor doubles up digits in token pasting With your example, "g++ -E -" gives me: <stdin>:2:1: error: pasting "foo2" and "2.2" does not give a valid preprocessing token foo22.2 with versions 4.0.1 (powerpc-apple-darwin8) and 4.2.0 (20070221) while "cpp -P" (4.0.1) gives me foo##2.2 and "cpp -P" (4.2.0) gives me <stdin>:2:1: error: pasting "foo" and "2.2" does not give a valid preprocessing token foo22.2 and "cpp -P -traditional" (4.0.1, 4.2.0) give me foo##2.2 Most odd... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31182
next prev parent reply other threads:[~2007-03-15 4:35 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-15 3:30 [Bug preprocessor/31182] New: " dsb at boyski dot com 2007-03-15 4:35 ` fang at csl dot cornell dot edu [this message] 2007-03-15 12:42 ` [Bug preprocessor/31182] " dsb at boyski dot com 2007-03-15 12:44 ` dsb at boyski dot com 2007-03-15 16:28 ` tromey at gcc dot gnu dot org 2007-03-16 12:58 ` dsb at boyski dot com 2007-04-25 0:29 ` tromey at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070315043535.27073.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).