delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/24/18:50:53

Message-ID: <38B5A9AD.FFF0815F@netcom.ca>
From: MM <mm AT netcom DOT ca>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Possible Compiler Bug
References: <38B57379 DOT 817FFBE4 AT netcom DOT ca> <38B599A0 DOT 9C790328 AT brandonsd DOT mb DOT ca>
Lines: 28
Date: Thu, 24 Feb 2000 16:59:09 -0500
NNTP-Posting-Host: 216.123.36.35
X-Complaints-To: abuse AT netcom DOT ca
X-Trace: tor-nn1.netcom.ca 951429360 216.123.36.35 (Thu, 24 Feb 2000 16:56:00 EDT)
NNTP-Posting-Date: Thu, 24 Feb 2000 16:56:00 EDT
Organization: Netcom Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I don't receive the 'address of a non-static member function' errors, but I do
get the last two lines ('no matching function for call ..').  Either that or the
'please submit a bug report'.  It seems to flip-flop between the two.
Thanks for your help.

N J Chackowsky wrote:

> I get the following errors, but no crash.
>
> wrong.cpp: In method `void t::selectfunc(int)':
> wrong.cpp:27: taking the address of a non-static member function
> wrong.cpp:27:   to form a pointer to member function, say `&t::func1'
> wrong.cpp:28: taking the address of a non-static member function
> wrong.cpp:28:   to form a pointer to member function, say `&t::func2'
> wrong.cpp:29: taking the address of a non-static member function
> wrong.cpp:29:   to form a pointer to member function, say `&t::func3'
> wrong.cpp: In method `void t::multifunc()':
> wrong.cpp:35: no matching function for call to `t::funcptr ()'
>
> MM wrote:
> >
> > The file I've attached causes djgpp to kill the compiler and tell me to
> > submit a full bug report.  I would do so, but first I want to make sure
> > this happens to others as well.  If you could please take a look at the
> > code and tell me what I'm doing wrong or if it shouldn't be done like
> > that at all to begin with I'd greatly appreciate it.
> > Thanks,

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019