This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26531] Use of templates in macro expansion confuses pre-processor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2006 18:27:20 -0000
- Subject: [Bug c++/26531] Use of templates in macro expansion confuses pre-processor
- References: <bug-26531-12299@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-02 18:27 -------
This is not a bug.
There are two arguments passed to the macro MYMACRO, "{\n SomeClass<int" and
"int> test;\n }".
the only way to force an argument passed to the preprocessor macros is to wrap
them in parentheses.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26531