From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15848 invoked by alias); 31 Jul 2002 19:56: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 15823 invoked by uid 71); 31 Jul 2002 19:56:01 -0000 Resent-Date: 31 Jul 2002 19:56:01 -0000 Resent-Message-ID: <20020731195601.15822.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, gnicholls@bluephoenixsolutions.com Received: (qmail 10702 invoked by uid 61); 31 Jul 2002 19:50:39 -0000 Message-Id: <20020731195039.10701.qmail@sources.redhat.com> Date: Wed, 31 Jul 2002 12:56:00 -0000 From: gnicholls@bluephoenixsolutions.com Reply-To: gnicholls@bluephoenixsolutions.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/7457: failure preprocessing ## directive X-SW-Source: 2002-07/txt/msg00818.txt.bz2 List-Id: >Number: 7457 >Category: preprocessor >Synopsis: failure preprocessing ## directive >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jul 31 12:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gregory Nicholls >Release: gcc v3.1 >Organization: >Environment: hpux11 and solaris >Description: The following construct fails compilation:- #define LIB_SUFF ".so" #define SV_MODULE_NAME_STR "libdrv"##LIB_SUFF This used to work on an earlier gcc and it also works on native aix c89 as well as native hpux cc. This is old code so I'm not sure if it's really a gcc bug or 'undefined behaviour'. In any case it's easy to repeat. >How-To-Repeat: compile supplied test program. Should fail with the following: gcc_test.c:6:29: warning: pasting ""libdrv"" and "LIB_SUFF" does not give a vali d preprocessing token >Fix: Dont' know . >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-unknown-content-type-cfile; name="gcc_test.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gcc_test.c" I2RlZmluZSBMSUJfU1VGRiAiLnNvIg0KI2RlZmluZSBTVl9NT0RVTEVfTkFNRV9TVFIgImxpYmRy diIjI0xJQl9TVUZGDQoNCmludCBtYWluKGludCBhcmdjLCBjaGFyICoqYXJndikNCnsNCiBwcmlu dGYoIk1vZHVsZSBOYW1lWyVzXVxuIixTVl9NT0RVTEVfTkFNRV9TVFIpOw0KIHJldHVybigwKTsN Cn0NCg==