https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86464
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > EDG accepts it but Clang also rejects it: > > del.cc:5:11: error: member initializer 'foo' does not name a non-static data > member or base class > : foo{ foo } > ^~~~~~~~~~ > > But I think the code is valid according to [class.base.init] p2. Even if it's valid and GCC will start accepting it, I think it should still get a warning from -Wshadow or something