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: "extronus at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 06:04:03 -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 #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