[Bug c++/18635] use of uninitialised reference accepted in C++ front end

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 24 19:07:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list