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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 19:07:41 -0000
- Subject: [Bug c++/18635] use of uninitialised reference accepted in C++ front end
- References: <20041123231112.18635.ajo@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-24 19:07 -------
No this is valid code (but undefined):
int &a = a;
a is injected before the equals so the code is about the same as:
int *a = &*a;
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635