https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125337

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-08-24

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Joerg Boehmer from comment #0)
> ./src/../header.hpp: note: reading CMI ‘gcm.cache/,/src/,,/header.hpp.gcm’

Yes, we should try collapsing foo/.. when looking up a gcm; confirming for that
issue.

> When I change src/src1.cpp to
>   import "header.hpp";
> 
> The translation of src/src1.cpp fails too:
> > g++-16 src/src1.cpp -c -std=c++20 -fmodules -flang-info-module-cmi
> src/src1.cpp:1:8: fatal error: header.hpp: No such file or directory

You could -I. to work around this?

You could also use -fmodule-mapper to override the implicit mapping.

Reply via email to