From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27117 invoked by alias); 15 Mar 2007 04:35:48 -0000 Received: (qmail 27074 invoked by alias); 15 Mar 2007 04:35:35 -0000 Date: Thu, 15 Mar 2007 04:35:00 -0000 Message-ID: <20070315043535.27073.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug preprocessor/31182] preprocessor doubles up digits in token pasting In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fang at csl dot cornell dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01356.txt.bz2 ------- 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: :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 :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