https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109660
Bug ID: 109660
Summary: module path inconsistency
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jbeulich at suse dot com
Target Milestone: ---
The pathname underneath gcm.cache/ is determined from the effective name
used for the main input file of a particular module. When modules are
built, no canonicalization occurs for the main input file. Hence the
module file wouldn't be found if a different (the canonicalized) file
name was used when importing that same module. This is an effect of
importing happening in the preprocessor, just like #include handling.
See also (and quoted from) commit d76c343d6a62 working around the issue in the
testsuite.