alexfh wrote: > Here's the reproducer: > > ```c++ > struct a { > virtual int *b(); > }; > template <class c> struct d : a { > int *b() { new c; } > }; > int *e(a *); > struct f { > char *g; > }; > struct h {}; > struct i { > i(const f &); > i(h); > }; > struct l { > i j = i({.g = ""}); > }; > int *k = e(new d<l>); > struct n : l {}; > int *m = e(new d<n>); > ```
A bit clearer repro: https://gcc.godbolt.org/z/r9EdcoW8G The new clang behavior seems wrong to me. https://github.com/llvm/llvm-project/pull/92527 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits