--- 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 at
--- 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
> class A {
> public:
> virtual char * print() const { return "A\n";}
> virtual ~A
ning when creating a non const derived funtion
from a const virtual funciton
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gn
--- 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 that
was
es not return a val
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/show_bug.cgi?id=32832