c++/7115: Internal compiler error on template stuff
Bernd Strieder
strieder@rhrk.uni-kl.de
Wed Jun 26 17:35:00 GMT 2002
> ----------------------------------snip here----------------------------
> template <unsigned int> class A {};
>
> template <typename T> A<sizeof(T*)> foo();
>
> void bar()
> {
> foo<void>();
> }
> ----------------------------------snip here----------------------------
as I said in the bug report I'm busy preparing my thesis. The code causing ICE
in my report is not from me, stripping it down to the essentials has to wait.
I know it'd be very nice to have that done. But better than nothing, at least
the problem is known to exist.
The code above seems to be quite different from the code the ICE is happening
in my example. The only thing in common is the template return type. The
project I'm working in has tons of advanced template code, some of the former
coders were very interested in STL, Boost, etc., and the techniques coming
from there. We were at the outer limits of g++ for several years having to
use alternate STL variants most of the time.
Looking at the simplicity of the ICE example above, I really wonder, why I
haven't run earlier into the problem. There are obviously people working on
the problems at high priority, that makes me feel better.
Bernd Strieder
More information about the Gcc-bugs
mailing list