https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85577
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Marek Polacek from comment #2) > Can the testcase be turned into a runtime test? I couldn't figure it out > (how to construct A). The point of the test is that GCC calls the vector(initializer_list<T>) constructor (which I deleted so that we get an error if it's used, i.e. it wasn't meant to be a runtime test, just compile-time). I thought that v{std::move(v)} should have called the vector move constructor, but actually https://wg21.link/cwg2137 says that GCC is right here (and Clang and EDG don't implement that DR yet, in Clang's case because it was found to create other problems). But GCC seems to be doing the right thing here.