1 2 3 4 5 6 7 | #include <vector> struct S { std::vector<S> v ; } ; S s1 = { } ; S s2 = { { } } ; S s3 = { { { } } } ; |
ICAgICNpbmNsdWRlIDx2ZWN0b3I+CiAgICBzdHJ1Y3QgUyB7IHN0ZDo6dmVjdG9yPFM+IHYgOyB9IDsKICAgIAogICAgUyBzMSA9IHsgfSA7CiAgICBTIHMyID0geyB7IH0gfSA7CiAgICBTIHMzID0geyB7IHsgfSB9IH0gOwo=
prog.cpp:6:22: error: template argument 1 is invalid
-
result: Compilation error (maybe you wish to see an example for C++11)


