This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22059] Inherited member as template argument
- From: "karlu at itn dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2005 09:25:55 -0000
- Subject: [Bug c++/22059] Inherited member as template argument
- References: <20050614091512.22059.karlu@itn.liu.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From karlu at itn dot liu dot se 2005-06-14 09:25 -------
I forgot to describe the problem.
The attached source code contains a template that has a member pointer argument.
When the template is used in a way so that the pointer should refer to an
inherited member a compiler error is rendered. I have also included a member
pointer example that is not in a template and that works fine. I'm not good at
reading the standard, but from what I can see there should be no difference
between how a member pointers are handled in template arguments and elsewhere.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22059