[Bug c++/90849] Gcc accepts invalid code

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

[Bug c++/90849] Gcc accepts invalid code

2019-06-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90849 --- Comment #1 from Jonathan Wakely --- Reduced: template struct A { A () : A ( 1 ) { } A (int); }; A a; G++ and MSVC accept the delegating constructor, Clang and EDG reject it. It's not immediately obvious to me that this is invalid, b