public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* preprocessor/8782: concatenating in macro produces strange warnings
@ 2002-12-02  2:46 ctron
  0 siblings, 0 replies; 4+ messages in thread
From: ctron @ 2002-12-02  2:46 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: preprocessor/8782: concatenating in macro produces strange warnings
@ 2002-12-02 12:16 Neil Booth
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Booth @ 2002-12-02 12:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR preprocessor/8782; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.co.uk>
To: Jens Reimann <ctron@dentrassi.de>
Cc: neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/8782: concatenating in macro produces strange warnings
Date: Mon, 2 Dec 2002 20:06:21 +0000

 Jens Reimann wrote:-
 
 > ok,
 > 
 > it will produce the correct code without ##
 > 
 > but why is the warning generated??
 
 What do you think the function of ## is?
 
 Neil.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: preprocessor/8782: concatenating in macro produces strange warnings
@ 2002-12-02  5:36 Jens Reimann
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Reimann @ 2002-12-02  5:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR preprocessor/8782; it has been noted by GNATS.

From: Jens Reimann <ctron@dentrassi.de>
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/8782: concatenating in macro produces strange
	warnings
Date: 02 Dec 2002 14:31:44 +0100

 --=-BR+l/EZhNu8F/m9LywLi
 Content-Type: multipart/alternative; boundary="=-07DBpxKoWgsc6TpAhQpP"
 
 
 --=-07DBpxKoWgsc6TpAhQpP
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 ok,
 
 it will produce the correct code without ##
 
 but why is the warning generated??
 
 On Mon, 2002-12-02 at 12:04, neil@gcc.gnu.org wrote:
 
 > Synopsis: concatenating in macro produces strange warnings
 >=20
 > State-Changed-From-To: open->closed
 > State-Changed-By: neil
 > State-Changed-When: Mon Dec  2 03:04:57 2002
 > State-Changed-Why:
 >     Not a bug.  What in the message is unclear?
 >    =20
 >     Remove your ##.
 >=20
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database=
 =3Dgcc&pr=3D8782
 
 --=20
 GPG/PGP Key ID: F9B3C74A
 GPG/PGP Fingerprint: A7FE 35B5 ADA0 CF96 8359  BF2B E17C 9CD8 F9B3 C74A
 
 --=-07DBpxKoWgsc6TpAhQpP
 Content-Type: text/html; charset=utf-8
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
 <HTML>
 <HEAD>
   <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
   <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/1.1.6">
 </HEAD>
 <BODY>
 ok,<BR>
 <BR>
 it will produce the correct code without ##<BR>
 <BR>
 but why is the warning generated??<BR>
 <BR>
 On Mon, 2002-12-02 at 12:04, neil@gcc.gnu.org wrote:
 <BLOCKQUOTE TYPE=3DCITE>
 <PRE><FONT COLOR=3D"#737373" SIZE=3D"3"><I>Synopsis: concatenating in macro=
  produces strange warnings
 
 State-Changed-From-To: open-&gt;closed
 State-Changed-By: neil
 State-Changed-When: Mon Dec  2 03:04:57 2002
 State-Changed-Why:
     Not a bug.  What in the message is unclear?
    =20
     Remove your ##.
 </FONT>
 <A HREF=3D"http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&=
 database=3Dgcc&pr=3D8782"><FONT SIZE=3D"3">http://gcc.gnu.org/cgi-bin/gnats=
 web.pl?cmd=3Dview%20audit-trail&amp;database=3Dgcc&amp;pr=3D8782</I></FONT>=
 </A></PRE>
 </BLOCKQUOTE>
 <PRE><TABLE CELLSPACING=3D"0" CELLPADDING=3D"0" WIDTH=3D"100%">
 <TR>
 <TD>
 <PRE>--=20
 GPG/PGP Key ID: F9B3C74A
 GPG/PGP Fingerprint: A7FE 35B5 ADA0 CF96 8359  BF2B E17C 9CD8 F9B3 C74A</PR=
 E>
 </TD>
 </TR>
 </TABLE>
 </PRE>
 </BODY>
 </HTML>
 
 --=-07DBpxKoWgsc6TpAhQpP--
 
 --=-BR+l/EZhNu8F/m9LywLi
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQA962C/4Xyc2Pmzx0oRAkiQAJ46LUbVq235wlLgfMjPh5myCeMUegCfXe3c
 4RViOeieFh+yWv3ihn6duaQ=
 =zIpm
 -----END PGP SIGNATURE-----
 
 --=-BR+l/EZhNu8F/m9LywLi--
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: preprocessor/8782: concatenating in macro produces strange warnings
@ 2002-12-02  3:04 neil
  0 siblings, 0 replies; 4+ messages in thread
From: neil @ 2002-12-02  3:04 UTC (permalink / raw)
  To: ctron, gcc-bugs, gcc-prs, nobody

Synopsis: concatenating in macro produces strange warnings

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon Dec  2 03:04:57 2002
State-Changed-Why:
    Not a bug.  What in the message is unclear?
    
    Remove your ##.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8782


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-02 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-02  2:46 preprocessor/8782: concatenating in macro produces strange warnings ctron
2002-12-02  3:04 neil
2002-12-02  5:36 Jens Reimann
2002-12-02 12:16 Neil Booth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).