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 #2 from extronus at gmail dot com  2008-01-22 06:04 -------
more simplified

-------------
template <typename HYPE>
struct base
{
  float a;
};

template <typename TYPE>
class derv : public base<TYPE>
{
  void der_funk()
  {
    a = 0;
  }
};


while this one works
--------------
template <typename HYPE>
struct base
{
  float a;
};

template <typename TYPE>
class derv : public base<int>
{

  void der_funk()
  {
    a = 0;
  }
};


-- 


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]