Created attachment 313701 [details] program that generate the bug. Description of problem: I was trying to adapt the fast delegate described at http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx to make it more clean to call and I found an internal error. I don't know if the source code that I am trying to compile is valid C++, but I guess that internal error is a bug no matter what so I am filling this bug. I simplified a lot the source, to what I guess is the minimum case where the bug still shows. I am attaching the source code. I tried with the two different versions of gcc below : - gcc-4.3.0-8.x86_64 - gcc-4.1.2-14.el5.x86_64 with the version (compat-gcc-34-c++-3.4.6-4.x86_64) the compiler gives a more sane error bellow : delegate.cpp: In function `void call(C*, void (C::*)()) [with C = teste]': delegate.cpp:27: instantiated from here delegate.cpp:12: error: `m' is not a valid template argument delegate.cpp:12: error: it must be a pointer-to-member of the form `&X::Y' delegate.cpp:12: error: no matching function for call to `stub(void*)'
Tracking this upstream.
*** Bug 458981 has been marked as a duplicate of this bug. ***