[Chapel Merge] compiler/next: resolve a problem with cmake unity

Branch: refs/heads/main
Revision: 422b076
Author: mppf
Link: compiler/next: resolve a problem with cmake unity build by mppf · Pull Request #18710 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18710 from mppf/compiler-next-allow-unity-build

compiler/next: resolve a problem with cmake unity build

I was experimenting with the cmake option -DCMAKE_UNITY_BUILD=1 to
build libchplcomp and noticed an easy-to-solve problem. yylval and yylloc
are macros in that setting but also the names of local variables.
Renaming the local variables addresses the problem.

Reviewed by @dlongnecke-cray - thanks!

Modified Files:
M compiler/next/lib/parsing/Parser.cpp

Compare: https://github.com/chapel-lang/chapel/compare/71fd28668aba...422b076353aa