Why does the following code compile? It compiles and runs fine with clang and prints first.
But, I believe the correct behavior should be to complain and issue a proper error.
#include <iostream>
#include <string>
int main()
{
std::string s{ "first", "second" };
std::cout << s << std::endl;
}
This question is inspired by this.