This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
- 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: 20 Jun 2008 14:01:07 -0000
- Subject: [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
- References: <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pinskia at gcc dot gnu dot org 2008-06-20 14:01 -------
think of:
template<class T> struct CBase<T>
{
protected:
T *i;
};
template<> struct CBase<int>
{
protected: typedef int i;
};
template<class T> struct CDerived : public CBase<T>
{
inline T* foo (void) { return const_cast <T*> i; }
}
What happens then?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36576