This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34920] Members in nameless union
- 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: 22 Jan 2008 05:11:59 -0000
- Subject: [Bug c++/34920] Members in nameless union
- References: <bug-34920-15674@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-22 05:11 -------
This is expect behavior as o is not dependent so it has to be looked up at
parse time and the parser does not look at dependent base classes for finding
symbols.
Doing:
void der_funk(TYPE v) {this->o[0] = v;}
Fixes the code and allows for the code to be compiled correctly.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34920