This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7115: Internal compiler error on template stuff
- From: Bernd Strieder <strieder at rhrk dot uni-kl dot de>
- To: Reichelt <reichelt at igpm dot rwth-aachen dot de>, gcc-gnats at gcc dot gnu dot org, strieder at informatik dot uni-kl dot de, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 26 Jun 2002 22:18:38 +0200
- Subject: Re: c++/7115: Internal compiler error on template stuff
- Organization: Universität Kaiserslautern
- References: <200206261111.NAA26065@numa6.igpm.rwth-aachen.de>
> ----------------------------------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