Red Hat Bugzilla – Bug 50966
Address of static member function bug
Last modified: 2007-03-26 23:47:42 EDT
Description of Problem:
funcptr.cc - Address of static member function bug. This problem
showed up when we tried to compile under GCC 2.96-85. It doesn't
happen under GCC 2.91.66. The compiler crashes with an internal error
(seg fault) when you try to compile code that takes the address of a
static member function. The problem is that you can't take the
address of a static template member function. There is no problem
taking the address of a simple template function that does the exact
Created attachment 26333 [details]
According to Jason Merrill, it is unclear whether this is valid C++ program
or not (it is currently open core issue 115 in the ISO C++ committee).
I'll see what can be done.
FYI it crashes with g++ 2.95.2, 2.96-RH, 3.0, 3.0.1 and 3.1 CVS.
and 3.2 as of 8.0
x1.C: In member function `void bark::run()':
x1.C:52: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
Fails through gcc 3.2; fixed for gcc 3.3.