http://bugzilla.novell.com/show_bug.cgi?id=582973
http://bugzilla.novell.com/show_bug.cgi?id=582973#c1
Richard Guenther changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Richard Guenther 2010-02-25 11:29:08 UTC ---
template <class T>
void AnyPush(T *aPtr, void (T::*aAction)())
{
Any::Push(aPtr);
this is not valid code. aAction isn't a proper template parameter which is
diagnosed properly (instead of ICEing) starting with GCC 4.4.3:
g++ -S t.ii
t.ii: In function 'void AnyPush(T*, void (T::*)()) [with T = SomeClass]':
t.ii:46: instantiated from here
t.ii:32: error: 'aAction' is not a valid template argument for type 'void
(SomeClass::*)()'
t.ii:32: error: it must be a pointer-to-member of the form `&X::Y'
t.ii:32: error: could not convert template argument 'aAction' to 'void
(SomeClass::*)()'
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.