From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24712 invoked by alias); 23 May 2002 10:06:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24684 invoked by uid 71); 23 May 2002 10:06:03 -0000 Resent-Date: 23 May 2002 10:06:03 -0000 Resent-Message-ID: <20020523100603.24682.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, loewis@informatik.hu-berlin.de Received:(qmail 24373 invoked from network); 23 May 2002 10:04:32 -0000 Received: from unknown (HELO mail.informatik.hu-berlin.de) (141.20.20.50) by sources.redhat.com with SMTP; 23 May 2002 10:04:32 -0000 Received: from paros.informatik.hu-berlin.de (paros [141.20.23.39]) by mail.informatik.hu-berlin.de (8.11.3/8.11.3/INF-2.0-MA-SOLARIS-2.8) with ESMTP id g4NA4U129672; Thu, 23 May 2002 12:04:30 +0200 (MEST) Received: (from loewis@localhost) by paros.informatik.hu-berlin.de (8.12.1+Sun/8.12.1/Submit) id g4NA4UrK009787; Thu, 23 May 2002 12:04:30 +0200 (CEST) Message-Id:<200205231004.g4NA4UrK009787@paros.informatik.hu-berlin.de> Date: Thu, 23 May 2002 03:06:00 -0000 From: loewis@informatik.hu-berlin.de To: gcc-gnats@gcc.gnu.org Cc: boehme@informatik.hu-berlin.de X-Send-Pr-Version:3.113 Subject: preprocessor/6780: Incorrect diagnosis of token pasting X-SW-Source: 2002-05/txt/msg00715.txt.bz2 List-Id: >Number: 6780 >Category: preprocessor >Synopsis: Incorrect diagnosis of token pasting >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 23 03:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 >Organization: HUB >Environment: System: SunOS paros 5.9 Beta_Refresh sun4u sparc SUNW,Sun-Blade-1000 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ../configure --host=sparc-sun-solaris2.8 --enable-shared --enable-threads --with-cpu=v8 --with-gnu-ld --with-gnu-as --enable-version-specific-runtime-libs >Description: When compiling the program #define inc2(a,b) <##a##.##b##> #define INC(X) inc2(X,h) #include INC(stdio) int main() { printf("Hallo"); } gcc gives the warning warning: pasting "" and "." does not give a valid preprocessing token This warning is incorrect: There is no token (with starting and terminating angle bracket) created during pasting. It is not clear whether the compiler really created such a token, or whether it just reports it in the error message. >How-To-Repeat: Compile the above code. >Fix: >Release-Note: >Audit-Trail: >Unformatted: