Weird "shadow template parameter"

Yuanfei guo yuanfei8077@gmail.com
Wed Oct 11 00:52:00 GMT 2006


Hi,

Can anyone please help shed some light on this question ?

Really need your guys' expertise on this.

Thanks,
-Yuanfei



On 10/10/06, Yuanfei guo <yuanfei8077@gmail.com> wrote:
> Hi,
>
> I found that compiling the following code will return the error
> "shadow template parameter" .  Can anyone please confirm if this is a
> GCC4.1 error or just another case  confirming to C++ standard more
> closely ?  If it's not a bug, I wonder if there is any option I can
> use to workaround this issue instead of changing my code ?
>
>
> Template <class Type>
> Class P1 {
>        Template <class Type> //wrong
>        Class C1{
>        };
> };
>
>
> Thanks,
> -Kelvin
>



More information about the Gcc-help mailing list