[Bug c++/45002] Name of member class of template class cannot be used as argument type.

walton at seas dot harvard dot edu gcc-bugzilla@gcc.gnu.org
Tue Jul 20 15:54:00 GMT 2010



------- Comment #2 from walton at seas dot harvard dot edu  2010-07-20 15:54 -------
Subject: Re:  Name of member class of template class cannot
 be used as argument type.


Umpf, sorry.

So I take it on reading up on name resolution that 14.6-2 requires 
`typename[::]' if the type name is qualified but not if it is not 
qualified, even if the name uniquely names a type.

Thanks for the quick response,

Bob

PS: If it were easy to do a better error message would be good.
Another thing that would be good is adding something to 14.5.1.2
on `Member classes of class templates' to say that if you use
them and try to name them you must use `typename[::]', but I
don't know how to submit a reference manual trouble report.

On Tue, 20 Jul 2010, paolo dot carlini at oracle dot com wrote:

>
>
> ------- Comment #1 from paolo dot carlini at oracle dot com  2010-07-20 10:39 -------
> You are missing typenames, eg. typename B<T>::C *
>
> See the gcc3.4.0 (!) release notes for details:
> http://gcc.gnu.org/gcc-3.4/changes.html
>
>
> -- 
>
> paolo dot carlini at oracle dot com changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|walton at seas dot harvard  |
>                   |dot edu                     |
>             Status|UNCONFIRMED                 |RESOLVED
>         Resolution|                            |INVALID
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45002
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45002



More information about the Gcc-bugs mailing list