[Bug c++/102229] [11/12 Regression] 'decltype(auto)' cannot be cv-qualified

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 9 15:08:37 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102229

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #6)
> Thanks.  With the latter interpretation in mind, it seems my earlier fix
> should be mitigated so that we allow 
> 
> constexpr decltype(auto)
> but not
> constexpr const decltype(auto)
> 
> Yes?

I think so, yes.

> Do you want me to raise this with the CWG?

Please.


More information about the Gcc-bugs mailing list