This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18635] use of uninitialised reference accepted in C++ front end
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Nov 2010 11:11:41 +0000
- Subject: [Bug c++/18635] use of uninitialised reference accepted in C++ front end
- Auto-submitted: auto-generated
- References: <bug-18635-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #10 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2010-11-26 11:11:29 UTC ---
(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?