This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 26 Jun 2002 20:26:01 -0000
- Subject: Re: c++/7115: Internal compiler error on template stuff
- Reply-to: Bernd Strieder <strieder at rhrk dot uni-kl dot de>
The following reply was made to PR c++/7115; it has been noted by GNATS.
From: Bernd Strieder <strieder@rhrk.uni-kl.de>
To: Reichelt <reichelt@igpm.rwth-aachen.de>, gcc-gnats@gcc.gnu.org,
strieder@informatik.uni-kl.de, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/7115: Internal compiler error on template stuff
Date: Wed, 26 Jun 2002 22:18:38 +0200
> ----------------------------------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