[Bug c++/101194] [9/10/11/12 Regression] aggregate init requires default constructor

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 28 20:21:06 GMT 2021


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

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced rejects-valid testcase:

struct nodefault {
  constexpr nodefault(int) { }
};
constexpr nodefault x[1] = { nodefault{0} };
constexpr nodefault y = x[0];


We started rejecting this testcase even earlier, after r7-2520.


More information about the Gcc-bugs mailing list