This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26205] pointer to member template parameter can't be null
- From: "jeffp at doomsday dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2006 19:55:55 -0000
- Subject: [Bug c++/26205] pointer to member template parameter can't be null
- References: <bug-26205-12166@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jeffp at doomsday dot org 2006-02-15 19:55 -------
The casting work-around doesn't compile under GCC. It requires that the
template parameter be a constant-expression (which is true), which results in
the following error:
error: a casts to a type other than an integral or enumeration type cannot
appear in a constant-expression
I have yet to be able to figure out a work-around. MSVC allows the cast, but
works with or without it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26205