From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19142 invoked by alias); 2 Dec 2002 10:46:05 -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 19118 invoked by uid 71); 2 Dec 2002 10:46:04 -0000 Resent-Date: 2 Dec 2002 10:46:04 -0000 Resent-Message-ID: <20021202104604.19117.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ctron@dentrassi.de Received: (qmail 18058 invoked by uid 61); 2 Dec 2002 10:41:56 -0000 Message-Id: <20021202104156.18057.qmail@sources.redhat.com> Date: Mon, 02 Dec 2002 02:46:00 -0000 From: ctron@dentrassi.de Reply-To: ctron@dentrassi.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/8782: concatenating in macro produces strange warnings X-SW-Source: 2002-12/txt/msg00052.txt.bz2 List-Id: >Number: 8782 >Category: preprocessor >Synopsis: concatenating in macro produces strange warnings >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Dec 02 02:46:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: ctron@dentrassi.de >Release: 3.2 >Organization: >Environment: >Description: when using the code from "how-to-repeat" the following macro is emitted. The compilation works, but the warning is anoying. warning: pasting "::" and "ostream" does not give a valid preprocessing token >How-To-Repeat: use the following statements: #define MACRO(x) std:: ## x or #define MACRO(x) std::##x the warning will be generated altough it works afterwards. >Fix: >Release-Note: >Audit-Trail: >Unformatted: