Fix bug (and test) for an invocation using macro name as a non-macro argument
authorCarl Worth <cworth@cworth.org>
Wed, 19 May 2010 14:42:42 +0000 (07:42 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 19 May 2010 14:42:42 +0000 (07:42 -0700)
commit69f390d6096c597dbe63f20fd02b2312da211de8
tree33638607813a1efa040b74009a6861c390ff6d6c
parentbe0e2e9b2ada51be66afb6b44330acb44e0261f2
Fix bug (and test) for an invocation using macro name as a non-macro argument

This adds a second shift/reduce conflict to our grammar. It's basically the
same conflict we had previously, (deciding to shift a '(' after a FUNC_MACRO)
but this time in the "argument" context rather than the "content" context.

It would be nice to not have these, but I think they are unavoidable
(withotu a lot of pain at least) given the preprocessor specification.
glcpp-parse.y
tests/034-define-func-self-compose-non-func.c [new file with mode: 0644]