The "default" related flags were not copied at function import. These values are checked at structural equivalence and if not copied can cause invalid non-equivalence with the from-context. The added test fails without this patch because the destructors are not linked into one decl chain.
The "default" related flags were not copied at function import. These values are checked at structural equivalence and if not copied can cause invalid non-equivalence with the from-context. The added test fails without this patch because the destructors are not linked into one decl chain.