[Bug c++/33878] Pure virtual method body omitted from template
yuriry at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 30 22:29:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list