I'm getting a compiler error https://godbolt.org/z/jEEs9Kcx6 when using emplace_back function to assign the returned reference to a reference variable in MSVC but not in GCC.
#include <iostream>
#include <string>
#include <vector>
int main() {
std::vector<std::string> vecs;
auto& str1 = vecs.emplace_back("Hello, world!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
std::cout << str1 << std::endl;
}