public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: potential preprocessor bug in latest g++?
[not found] <200007271056.HAA19219@cacau.lsd.ic.unicamp.br>
@ 2000-07-27 14:26 ` Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2000-07-27 14:26 UTC (permalink / raw)
To: David Howells; +Cc: gcc-bugs
On Jul 27, 2000, David Howells <David.Howells@nexor.co.uk> wrote:
> gccquery.cpp:16:30: warning: pasting would not give a valid preprocessing token
The warning is appropriate. `foo::IBar' is not a valid token. `foo',
`::' and `iBar' are three separate tokens. Pasting them together is
wrong.
> #define DECLARE_COM_TRAITS(NAMESPACE,CLASS) \
> struct com_if_traits<NAMESPACE ## CLASS> { \
> static inline const IID& GetIID() { return NAMESPACE ## IID_##CLASS; } \
> }
> DECLARE_COM_TRAITS(foo::,IBar);
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-27 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200007271056.HAA19219@cacau.lsd.ic.unicamp.br>
2000-07-27 14:26 ` potential preprocessor bug in latest g++? Alexandre Oliva
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).