This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18530] [4.0 regression] Bogus warnings about shadowed variables __ct, __dt
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 05:32:00 -0000
- Subject: [Bug c++/18530] [4.0 regression] Bogus warnings about shadowed variables __ct, __dt
- References: <20041117161141.18530.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-24 05:31 -------
Using names with double underscores does put you on shaky ground, as those are
reserved to the implementation, of course. I agree that it isn't desirable to
warn about "__ct" -- but there are other problems relating to these names. (For
example, declaring a member with the name "__ct" does not work as expected, but
neither is the member considered a constructor.)
I am working on a fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18530