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: "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: 14 Jun 2005 12:45:11 -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 pinskia at gcc dot gnu dot org 2005-06-14 12:45 -------
14.3.2 (5) says the following:
For a non-type template-parameter of type pointer to data member, qualification conversions (4.4) are
applied.
Meaning only adding cvq can be added which makes this invalid code.
ICC also rejects this code for the same reason as GCC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22059