From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28670 invoked by alias); 31 Jul 2002 03:06:01 -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 28650 invoked by uid 71); 31 Jul 2002 03:06:01 -0000 Resent-Date: 31 Jul 2002 03:06:01 -0000 Resent-Message-ID: <20020731030601.28649.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, david@there.com Received: (qmail 27186 invoked from network); 31 Jul 2002 03:01:18 -0000 Received: from unknown (HELO mail2.there.com) (64.178.80.34) by sources.redhat.com with SMTP; 31 Jul 2002 03:01:18 -0000 Received: from dewdev3.there.com (dewdev3.there.com [10.10.24.3]) by mail2.there.com (Postfix) with ESMTP id 5488D79D84 for ; Tue, 30 Jul 2002 20:00:52 -0700 (PDT) Received: (from root@localhost) by dewdev3.there.com (8.11.2/8.8.7) id g6V30AZ29939; Tue, 30 Jul 2002 20:00:10 -0700 Message-Id: <200207310300.g6V30AZ29939@dewdev3.there.com> Date: Tue, 30 Jul 2002 20:06:00 -0000 From: david@there.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: preprocessor/7452: Preprocessor doesn't allow pasting " foo-> ## BAR " X-SW-Source: 2002-07/txt/msg00799.txt.bz2 List-Id: >Number: 7452 >Category: preprocessor >Synopsis: Preprocessor doesn't allow pasting " foo-> ## BAR " >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Jul 30 20:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: root >Release: 3.1.1 >Organization: There, Inc. >Environment: System: Linux dewdev3.there.com 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.1.1/configure --prefix=/usr/local/gcc-3.1.1 --program-suffix=-311 --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-dwarf2 --disable-nls >Description: The GNU preprocessor has in the past been able to append method names after a "->". It should continue to be able to do so. >How-To-Repeat: When in a macro, try to concatenate some "foo->" with a macro parameter like BAR; i.e., "foo->##BAR". Note that the preprocessor will complain, tossing a warning and the (incorrect) text "foo-> baz" will be tossed out. (Assuming macro parameter BAR was set to baz.) Instead, no warning should be issued, and the text "foo->baz" should be output. >Fix: There doesn't seem to be a way to force the preprocessor to accept concatenating anything with a left-hand token that ends in "->". =( >Release-Note: >Audit-Trail: >Unformatted: