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++/33878] Pure virtual method body omitted from template



------- Comment #3 from yuriry at gmail dot com  2008-03-30 22:29 -------
I believe that the main problem here is that GCC allows defining pure virtual
functions.  The compiler should report an error when these two functions are
defined:

//------------------------------------
void Base::pvMethod()
{
}

template<class T>
void TBase<T>::pvMethod()
{
}
//------------------------------------

I added bug #35772 to track this.


-- 

yuriry at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuriry at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33878


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