This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37480] GCC Allows null-references in C++
- From: "rarut at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2008 11:45:09 -0000
- Subject: [Bug c++/37480] GCC Allows null-references in C++
- References: <bug-37480-16698@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rarut at mail dot ru 2008-09-11 11:45 -------
Generally reference members when used like this seem to behaive like pointers:
- have default constructor (making null reference)
- store garbage when when left uninitialized
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37480