Type problem with template functions and inheritance?
Wolfgang Bangerth
bangerth@ices.utexas.edu
Wed Sep 8 22:41:00 GMT 2004
> I played a little with templates and template functions, and I encountered a
> problem with GCC while doing so. The code at the end of this message builds
> with Microsoft's Visual C++ Toolkit 2003, but fails with GCC. Since the code
> is quite "weird", I wonder whether there's a problem in GCC or Visual is too
> laxist.
>
> What is strange is:
> - the "<unknown type>" in the error message
> - the fact that if I "help" GCC a little (before the first static_cast),
> then things work fine.
I just opened PR 17359 for this. It seems to me that gcc is wrong indeed.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
More information about the Gcc
mailing list