Template as template argument: typename vs class keywords
Philippe Bouchard
philippeb@corel.com
Fri Nov 24 13:21:00 GMT 2000
The program:
template <template <typename T> typename U> struct A
{
};
Reports:
templateastemplateargument.cpp:1: parse error before `typename'
Under:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
I didn't check the standard C++ syntax, but isn't "typename U" supposed
to be allowed here, instead of "class U"?
ÃÂ
Thanks.
begin:vcard
n:Bouchard;Philippe
x-mozilla-html:FALSE
org:Corel Linux
adr:;;;;;;
version:2.1
email;internet:philippeb@corel.com
title:Software Engineer
x-mozilla-cpt:;0
fn:Philippe Bouchard
end:vcard
More information about the Gcc-bugs
mailing list