[Bug c++/15300] name hiding in constructor yields random results

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 5 19:32:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list