gfsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gfsd]error in gcc version 2.96


From: michiel . visser
Subject: [gfsd]error in gcc version 2.96
Date: Wed, 5 Dec 2001 11:39:18 +0100

I want to report a possible bug in gcc:

The compiler does not give a warning when overloading a function as a static 
function.

example:

class A
{
public:
   int func() { return 0; }
};

class B: public A
{
     static int func() { return instance->func(); }  // this is a recursive 
function !
     static B *instance;
};

B* B::instance;

---------------------------------------
Ir. M.C. Visser
Software Engineer

Philips TASS
PO Box 218
5600 MD Eindhoven
Tel:  (00)+31(0)40-2755288
Fax:  (00)+31(0)40-2755419
---------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]