This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38681] Internal compiler error. expr.c:6956 [Template instantiation with non-type value of member function ptr]
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2008 07:49:50 -0000
- Subject: [Bug c++/38681] Internal compiler error. expr.c:6956 [Template instantiation with non-type value of member function ptr]
- References: <bug-38681-17131@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-31 07:49 -------
> ulong ConnectCB(GtkWidget* pWidget, const char* sigName, _R(_ClassType::*MemFun)(GtkWidget*, _A1))
> {
> typedef CBFamily2<_ClassType, _R, GtkWidget*, _A1, MemFun> TCallbackType;
This code is invalid code, you are using a non constant expression for a
template argument.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38681