https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94831
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Here's a testcase that is definitely valid in C++17 and C++20, but fails with
GCC 10:
#include <memory>
int main()
{
float i[2];
std::uninitialized_value_construct(&i, &i + 1);
}
The standard says this just uses a new-expression, but we have always
implemented it by a call to _Construct, which now fails in GCC 10.