[Bug c++/95568] No CTAD with list initialization within requires-clause
johelegp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jun 20 18:02:58 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95568
--- Comment #5 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
(In reply to Marek Polacek from comment #2)
> 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}; }
Then this may be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95434.
More information about the Gcc-bugs
mailing list