[Bug c++/40293] reference can be initialized by itself

2009-05-29 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-29 14:35 --- *** This bug has been marked as a duplicate of 18635 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/40293] reference can be initialized by itself

2009-05-29 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-29 14:14 --- It's a feature to avoid uninitialized warnings. That of course shouldn't work for initializing references. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/40293] reference can be initialized by itself

2009-05-29 Thread pentek dot imre at gmail dot com
--- Comment #1 from pentek dot imre at gmail dot com 2009-05-29 13:00 --- The same applies to this code: #include using namespace std; int main() { int &x=x; x=0; cerr