From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28575 invoked by alias); 19 Aug 2003 09:12:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 28562 invoked from network); 19 Aug 2003 09:12:52 -0000 Received: from unknown (HELO hermes.aston.ac.uk) (134.151.79.46) by sources.redhat.com with SMTP; 19 Aug 2003 09:12:52 -0000 Received: from [134.151.54.165] (helo=nepomuk.aston.ac.uk) by hermes.aston.ac.uk with esmtp (Exim 3.30 #1) id 19p2Y3-0007Ic-00; Tue, 19 Aug 2003 10:13:03 +0100 Received: from marc by nepomuk.aston.ac.uk with local (Exim 3.36 #1 (Debian)) id 19p2Xg-0001WZ-00; Tue, 19 Aug 2003 10:12:40 +0100 Date: Tue, 19 Aug 2003 09:12:00 -0000 To: Nathan Sidwell Cc: gcc-help@gcc.gnu.org Subject: Re: pasting "." and "something" does not give a valid preprocessing token.. Message-ID: <20030819091240.GB5171@nepomuk.aston.ac.uk> References: <20030819081900.GA4984@nepomuk.aston.ac.uk> <3F41E146.5000307@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F41E146.5000307@codesourcery.com> X-Accept-Language: en,de X-PGP-KeyID: 7AE9CD6E X-PGP-CertKey: 4689 6D5B 4229 97CC D1D6 1972 0AEC D623 EB5C 8D9A X-Request-PGP: http://www.aston.ac.uk/~eberhama/gpg.html Organization: Aston University, UK User-Agent: Mutt/1.5.4i From: Marc Eberhard X-SW-Source: 2003-08/txt/msg00180.txt.bz2 Dear Nathan! On Tue, Aug 19, 2003 at 09:35:18AM +0100, Nathan Sidwell wrote: > Marc Eberhard wrote: > > this-> ## v > > mynamespace:: ## v > > > >Is there a way to convince the preprocessor, that I know, what I'm doing > >and to accept the result as a vaild token (what it is in C++)? This is > >with gcc (GCC) 3.3.1 20030626 (Debian prerelease). > they are not valid single tokens. The preprocessor is correct. Why do you > think you need a ## at all? Ahhh, that's the solution. :-) I somehow thought, that I would have to use ## to combine the two and 2.95 happyly did the right thing with it. Only when upgrading to 3.3 I suddenly ran into this problem. But you're perfectly right... simply leaving the ## out solves the problem! Many thanks, I would never have guessed, that the solution is that easy!!! Thanks, Marc _______________________________________________________________________________ email: marc@greenie.net, marc.eberhard@alumni.tum.de, marc@affs.org.uk email: m.a.eberhard@aston.ac.uk, web: http://www.aston.ac.uk/~eberhama/