[Bug c++/88816] Constructor calls itself recursively

2019-01-12 Thread isj-bugzilla at i1 dot dk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816 --- Comment #3 from Ivan Skytte Jørgensen --- Ohhh...! Thank you for the explanation. That was not at all obvious to me. It would be great if GCC detected it and warned "brace-initializing a std:vector with a single std::vector may not do what y

[Bug c++/88816] New: Constructor calls itself recursively

2019-01-11 Thread isj-bugzilla at i1 dot dk
++ Assignee: unassigned at gcc dot gnu.org Reporter: isj-bugzilla at i1 dot dk Target Milestone: --- In the reduced code below the constructor Value::Value(std::vector > const&) calls itself in the generated code leading to stack overflow. There is no such recursive call in the