[Bug c++/124478] Failed to read module cache at compile time

nshead at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 13 12:20:55 GMT 2026


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

--- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
And here's a reduced testcase:

// a.cpp
export module tools;
export template <typename T> struct myvector {
  T* t = nullptr;
  ~myvector() { delete t; }
};
export struct DedupeFilesPath {
    myvector<int> other;
};

// b.cpp
export module dedupe;
import tools;
myvector<DedupeFilesPath> vec;

// c.cpp
import dedupe;
import tools;
DedupeFilesPath analyse_text(int) {
    return {};
}


More information about the Gcc-bugs mailing list