On Mon, Aug 25, 2025 at 05:29:13PM +0200, Jakub Jelinek wrote: > That is not what should be done. The lookup should be done at the declare > variant declaration side, that is how the design has been since that > meeting. The compiler records the variants and later on just picks from > that list of variants based on the condition.
To be precise, that for non-template declarations, for template declarations at the point of their instantiation. Jakub