This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40293] reference can be initialized by itself
- From: "pentek dot imre at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2009 13:00:24 -0000
- Subject: [Bug c++/40293] reference can be initialized by itself
- References: <bug-40293-9799@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pentek dot imre at gmail dot com 2009-05-29 13:00 -------
The same applies to this code:
#include <iostream>
using namespace std;
int main()
{
int &x=x;
x=0;
cerr<<x<<endl;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40293