[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] Constructor calls itself recursively

2019-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > See PR 85577 (and PR 86135). > > Use parens instead of braces and it works: > > new(&u.array_elements) array_type(a); Basically, if you're trying to ca

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

2019-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---