You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CWG2296 Are default argument instantiation failures in the “immediate context”? #1377
Section: 13.10.3 [temp.deduct] Status: extension Submitter: Jason Merrill Date: 2016-06-25
Consider the following example (taken from issue 3 of paper P0348R0):
When is the substitution into the return type done? The current specification makes this example ill-formed because the failure to instantiate the default argument in the decltype operand is not in the immediate context of the substitution, although a plausible argument for making this a SFINAE case can be made.
Notes from the June, 2016 meeting:
CWG decided to refer this question to EWG for their consideration.
JF contacted Andrzej to see if he’s interested in addressing this. Not sure he is.
Meeting 2020-10-28: Tomasz will write a paper which exposes the issue and what he thinks should be done (but not resolving wording itself). Hubert remembers an email about this, will find it and sync with JF.
Activity
jensmaurer commentedon Mar 14, 2024
The links to the old e-mail thread seem to be wrong, above. Use this one: https://lists.isocpp.org/ext/2020/05/13752.php instead. And Andrzej's announcement of his paper is here: https://lists.isocpp.org/ext/2021/01/15815.php
This issue would be resolved by P2285 Are default function arguments in the immediate context? #976
hanickadot commentedon May 20, 2026
@jensmaurer this was resolved with P4149 #2681 (approved in Croydon at plenary)