Endilll wrote:

> It might violate https://eel.is/c++draft/temp.inst#11 to attempt to 
> instantiate the unused S::operator int<int>?

I don't think this clause of the standard is violated: you need to instantiate 
a declaration of the conversion function to at the end of definition of `M`, 
otherwise you can't "determine the correctness of the default member 
initializer" in `int x = S();`;

https://github.com/llvm/llvm-project/pull/87933
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to