Template bug in snapshot / 1.1.1
Oskar Enoksson
osken393@student.liu.se
Sun Dec 13 04:28:00 GMT 1998
Another bug I encountered on both alphaev56-dec-osf4.0d and
i386-pc-linux-gnu in the latest snapshot:
/* Begin test.cpp */
template<int N, class C>
class Bar {};
template<class C>
class Huh {};
template<int N>
void foo(const Bar<N,Huh<float[1]> > &x) {}
int main() {
foo(Bar<3,Huh<float[1]> >());
}
/* end test.cpp */
Results using 2.92.25 (snapshot 19981204) on both alphaev56-dec-osf4.0d
and i386-pc-linux-gnu:
> c++ -c test.cpp
test.cpp: In function `int main()':
test.cpp:12: no matching function for call to `foo (Bar<3,Huh<float[1]>
>)'
Please mail me if you need more info.
I should also thank you for having fixed the other bugs with array type
template arguments I reported earlier. Great job!
/Oskar
*/ Oskar Enoksson, Linkoping, Sweden /*
More information about the Gcc-bugs
mailing list