http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-26 11:25:30 UTC --- (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #2) > > > int &a = a; > > > i don't believe this is valid code. i believe g++ should reject the code. > > > > I'm not convinced the compiler must reject it. EDG accepts it too. > > Without warning? What about clang 2.8? Yes, without warning (G++ at least warns) I don't know about clang