This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/58887] Allow recursion in variadic macros?
- From: "mtewoodbury at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Oct 2013 11:35:44 +0000
- Subject: [Bug preprocessor/58887] Allow recursion in variadic macros?
- Auto-submitted: auto-generated
- References: <bug-58887-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887
--- Comment #6 from Max TenEyck Woodbury <mtewoodbury at gmail dot com> ---
I have checked the code in libcpp. The __VA_ARG_COUNT__/__VA_ARGC__
implementation looks quite feasible. The heaviest impact looks to be new and
revised error messages and their translation.
I started to look at the possibility of doing actual recursion but ran out of
steam temporarily. It might be necessary to copy hashnodes or, worse yet, add
a field to the hashnode structure. Later...