Using a pointer-to-member call referring to a virtual member function inside a templated function results in the error: invalid use of ' NUNetRef::overlaps' to form a pointer-to-member-function. Use a qualified-id. The example compiles in 3.3.3 and 3.4.0 but doesn't compile in 3.4-20040604. If I make the templated function a regular function, it compiles without error. <example checked in momentarily>
Created attachment 6521 [details] simple test case
If I change the collision function to not be templated ala bool collision (NUNetRef&a, NUNetRef& b) { int dummy; NUNetRefCompareFunction f = &NUNetRef::overlaps; return (a.*f)(b); } Then it compiles without error.
This is a dup of bug 15875 which is fixed by reverting the patch which caused this regression. *** This bug has been marked as a duplicate of 15875 *** *** This bug has been marked as a duplicate of 15875 ***