#define FOO(x) ((x)+1)
#define BAR FOO
print *, BAR(1)
should work as one would expect.
Paths
| Differential D151154
[flang][preprocessing] Allow keyword macro to rename a function-like macro ClosedPublic Authored by klausler on May 22 2023, 2:01 PM.
Details Summary #define FOO(x) ((x)+1) should work as one would expect.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 22 2023, 2:17 PM This revision was landed with ongoing or failed builds.May 22 2023, 2:44 PM Closed by commit rG9efe1581502f: [flang][preprocessing] Allow keyword macro to rename a function-like macro (authored by klausler). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 524494 flang/lib/Parser/preprocessor.cpp
flang/test/Preprocessing/renaming.F
|