[Bug c++/84373] g++ incorrectly resolves names for default parameters
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 19 04:38:45 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84373
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1787r6.html
>
>
> Confirmed.
I should note that paper clearifies this to the tea now:
A parameter shall not appear as a potentially-evaluated expression in a default
argument.
Also note that paper is considered a defect fix for at least C++20.
More information about the Gcc-bugs
mailing list