This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ regression - or not ?


Dirk Mueller wrote:
> 
> Any comment on the other part of the question ? why does gcc allow calling a 
> static method with a "this" pointer ? 

just because it's allowed in the c++ language.

>and not even warn about it ?

Boilerplate answer: 
because no one bothered to implement the warning and/or considered it useful.
 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]