[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug? default args for nested templates gives error
From: |
Ivan Godard |
Subject: |
Bug? default args for nested templates gives error |
Date: |
Sat, 10 Feb 2001 22:52:10 -0800 |
Using:
address@hidden <130> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
the compiler gives:
address@hidden <131> gcc -c test3.cpp
test3.cpp:4: redefinition of default argument for `int const a2'
test3.cpp:4: original definition appeared here
address@hidden <132>
from this source example:
template <int a1 = 100> class c1 {};
class c {
template <int a2 = 100> class c2 {};
};
Note that the error is reported only for the nested template.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug? default args for nested templates gives error,
Ivan Godard <=