From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16035 invoked by alias); 10 Feb 2003 23: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 15994 invoked by uid 71); 10 Feb 2003 23:06:00 -0000 Date: Mon, 10 Feb 2003 23:06:00 -0000 Message-ID: <20030210230600.15992.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: frey waid Subject: Re: preprocessor/9650: string literal contactenation doesn't work with #include Reply-To: frey waid X-SW-Source: 2003-02/txt/msg00469.txt.bz2 List-Id: The following reply was made to PR preprocessor/9650; it has been noted by GNATS. From: frey waid To: neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: preprocessor/9650: string literal contactenation doesn't work with #include Date: Mon, 10 Feb 2003 15:01:49 -0800 that's what i was doing before. so i had this: #include COMP_INC(comp,file) #define COMP_INC(comp,file) #comp "/include/" #file do you have another method in mind? frey neil@gcc.gnu.org wrote: > > Synopsis: string literal contactenation doesn't work with #include > > State-Changed-From-To: open->closed > State-Changed-By: neil > State-Changed-When: Mon Feb 10 22:57:32 2003 > State-Changed-Why: > Not a bug. > > In standard C/C++ such concatenation does not happen. It appears it was an undocumented feature of some previous versions of GCC. > > If you really miss it, you can probably get what you want through the # operator via indirect macro expansion. > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9650