AaronBallman wrote:
> I dont think this works in templates if the 'noreturn' function is not known
> at parse time, right? Can you test:
>
> ```
> template<typename T>
> [[pure]] int templ() {
> T::nrcall();
> return 12;
> }
>
> struct S {
> [[noreturn]] void nrcall();
> };
> ```
Test added, and correct, no diagnostic is emitted there because the call not
yet be resolved. The uninstantiated diagnostic is because the call isn't
dependent in any way.
https://github.com/llvm/llvm-project/pull/206134
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits