This implements the current standard wording for [dcl.fct.default]p9 and [dcl.fct.default]p7. This has been changed by CWG 2082.
Note: I don't have access to the paper therefore I assume it retroactively applies to all C++ standards.
Differential D65696
Implements CWG 2082 Referring to parameters in unevaluated operands of default arguments Mordante on Aug 3 2019, 3:43 AM. Authored by
Details
This implements the current standard wording for [dcl.fct.default]p9 and [dcl.fct.default]p7. This has been changed by CWG 2082. Note: I don't have access to the paper therefore I assume it retroactively applies to all C++ standards.
Diff Detail Event Timeline
Comment Actions Updated the unit tests as requested. This required the Sema::ActOnParamDefaultArgument to delay a part of the ODR validation until the default argument has been 'instantiated'.
|
Please add tests for the distinction between "potentially-evaluated" and "odr-used" here, for example: