[Bug c++/32934] No warning when creating a non const derived function from a const virtual function

2007-07-31 Thread CyrusOmega at gmail dot com
--- Comment #4 from CyrusOmega at gmail dot com 2007-07-31 21:41 --- Subject: Re: No warning when creating a non const derived function from a const virtual function Wow, thanks. I thought that -Wall was ALL warnings. grumble grumble... Andrew On 31 Jul 2007 21:32:32 -, fang

[Bug c++/32934] No warning when creating a non const derived function from a const virtual function

2007-07-30 Thread CyrusOmega at gmail dot com
--- Comment #2 from CyrusOmega at gmail dot com 2007-07-30 12:04 --- (In reply to comment #1) Well it is valid as B::print hides A::print. Try doing: #include iostream class A { public: virtual char * print() const { return A\n;} virtual ~A(){}; }; class B : public

[Bug c++/32934] New: No warning when creating a non const derived funtion from a const virtual funciton

2007-07-29 Thread CyrusOmega at gmail dot com
funciton Product: gcc Version: 4.0.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: CyrusOmega at gmail dot com http://gcc.gnu.org/bugzilla

[Bug c++/32832] Seg fault on member function that does not return a val

2007-07-20 Thread CyrusOmega at gmail dot com
--- Comment #2 from CyrusOmega at gmail dot com 2007-07-20 11:56 --- Subject: Re: Seg fault on member function that does not return a val Is there ANY case where this action would NOT result in a segfault!? Specifically, it is segfaulting because something is being freed

[Bug c++/32832] New: Seg fault on member function that does not return a val

2007-07-19 Thread CyrusOmega at gmail dot com
Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: CyrusOmega at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32832