Weird "shadow template parameter"
Yuanfei guo
yuanfei8077@gmail.com
Tue Oct 10 03:59:00 GMT 2006
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