[Bug c++/22059] Inherited member as template argument

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 12:45:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list