[Bug c++/35772] New: GCC allows defining pure virtual functions

2008-03-30 Thread yuriry at gmail dot com
defining pure virtual functions Product: gcc Version: 4.1.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: yuriry at gmail dot com http

[Bug c++/33878] Pure virtual method body omitted from template

2008-03-30 Thread yuriry at gmail dot com
--- 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

[Bug c++/35772] GCC allows defining pure virtual functions

2008-03-31 Thread yuriry at gmail dot com
--- Comment #2 from yuriry at gmail dot com 2008-03-31 07:10 --- Hi Björn, Thank you for the link and setting me straight. You are correct, implementation of a pure virtual function by the class that declares it makes sense. It is just the class itself remains abstract. Earlier today

[Bug c++/33878] Pure virtual method body omitted from template

2008-03-31 Thread yuriry at gmail dot com
--- Comment #6 from yuriry at gmail dot com 2008-03-31 20:01 --- Yes, it is legal, sorry confusion. Yuri (In reply to comment #4) > (In reply to comment #3) > > I believe that the main problem here is that GCC allows defining pure > > virtual > > functions. >

[Bug c++/33878] Pure virtual method body omitted from template

2008-04-02 Thread yuriry at gmail dot com
--- Comment #14 from yuriry at gmail dot com 2008-04-02 17:15 --- Hi Björn My question is slightly off topic but I am really interested in the purpose of defining a template class where a template parameter is not used. Why would you need this? Regards, Yuri template class TBase

[Bug c++/33878] Pure virtual method body omitted from template

2008-04-02 Thread yuriry at gmail dot com
--- Comment #16 from yuriry at gmail dot com 2008-04-02 17:58 --- Thanks for the reply, David! But now I have more questions than I had before :-) I'm not sure if this thread is the right place to go into details on this topic. If you know any other place to move this discu