Nathan Sidwell <nat...@acm.org> writes: > > This doesn't seem to match the code to go into directives mode all that > > well.? You don't reset pragma_allow_expansion or directive_line. > > Hm, yeah. I think neither of those fields have any bearing in > non-directives mode, and always get set when entering it? Again, > comment at the very least.
FWIW, I remember wrestling with that login in my branch, here are the changes to directives-only.c (in particular, see the "Handle import as pseudo-directive (P1703R0)" commit): https://github.com/boris-kolpackov/gcc-cxx-modules-ex/commits/c%2B%2B-modules-ex/libcpp/directives-only.c