tbaederr wrote: https://godbolt.org/z/a8TW93h63
Because it isn't a constant expression - at the time of the evaluation of the `static_assert`, the parameter value `cf` is unknown and so initializing `scf` can't work. Rejecting this is correct. https://github.com/llvm/llvm-project/pull/100565 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits