[Bug c++/95568] No CTAD with list initialization within requires-clause

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 18 19:47:25 GMT 2020


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The problem seems to be not that we're in a require-clause but that we're in a
template, the following is also rejected:

template<class T> struct X { T x; };
template<class T> void g () { X{0}; }


More information about the Gcc-bugs mailing list