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 {};
}

Reply via email to