From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31287 invoked by alias); 15 Mar 2007 03:30:58 -0000 Received: (qmail 31261 invoked by uid 48); 15 Mar 2007 03:30:48 -0000 Date: Thu, 15 Mar 2007 03:30:00 -0000 Subject: [Bug preprocessor/31182] New: preprocessor doubles up digits in token pasting X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dsb at boyski dot com" 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/msg01355.txt.bz2 Very simple test case: % cat /tmp/ff.s #define Concat(a,b) a##b Concat(foo,2.2) % cpp -P /tmp/ff.s foo22.2 Notice that what should be "2.2" becomes "22.2". Also note that this occurs while preprocessing assembler (-x assembler-with-cpp) code. -- Summary: preprocessor doubles up digits in token pasting Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dsb at boyski dot com GCC build triplet: i386-pc-solaris2.10 GCC host triplet: i386-pc-solaris2.10 GCC target triplet: i386-pc-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31182