[Bug c++/24157] g++ allows variable to be initialized by value of variable being initialized
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 1 15:40:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-10-01 15:40 -------
for:
int i = i;
The code is valid but undefined.
You have to use -Winit-self.
*** This bug has been marked as a duplicate of 5582 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24157
More information about the Gcc-bugs
mailing list