This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15300] name hiding in constructor yields random results
- 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: 5 May 2004 19:32:20 -0000
- Subject: [Bug c++/15300] name hiding in constructor yields random results
- References: <20040505191443.15300.jaffe@broad.mit.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-05 19:32 -------
int a(a); is equivant to int a = a; and since in C++ a is declared right before ( and =, it is the same
variable as you are assigning it to. So this is invalid.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15300