This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33878] Pure virtual method body omitted from template
- From: "yuriry at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2008 22:29:14 -0000
- Subject: [Bug c++/33878] Pure virtual method body omitted from template
- References: <bug-33878-15256@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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