This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7115: Internal compiler error on template stuff


> ----------------------------------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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]