This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24157] g++ allows variable to be initialized by value of variable being initialized
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2005 15:40:41 -0000
- Subject: [Bug c++/24157] g++ allows variable to be initialized by value of variable being initialized
- References: <20051001065812.24157.gahs@phys.ksu.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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