This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34920] Members in nameless union



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]