[Bug c++/26496] Pointer to virtual member function.

dwoovseesp at kriocoucke dot mailexpire dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 28 13:46:00 GMT 2006



------- Comment #4 from dwoovseesp at kriocoucke dot mailexpire dot com  2006-02-28 13:42 -------
(In reply to comment #3)
> Hmm, in 4.0.3 I get:
> t.cc: In function ‘int main()’:
> t.cc:35: error: no matching function for call to ‘mem_fun(double
> (Distribution::)())Â’
> 

Interesting.  What happens if you remove the mem_fun call:
===
   generate_n(ostream_iterator<double>(cout, "\n"), 100,  rng->*ptr);
===
my gcc still reports an internal compiler error. 

  Matthias


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26496



More information about the Gcc-bugs mailing list