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

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Forgot the example:

// $ cat value.cc.cc
struct basic_string {
  constexpr basic_string(basic_string &);
  ~basic_string();
};
struct StorePath {
  basic_string baseName;
};
struct DerivedPathOpaque {
  StorePath path;
};
void makeConstantStorePathRef(StorePath drvPath) { DerivedPathOpaque{drvPath};
}

Reply via email to