c++/5931: ICE when using template class that is child if another template class

F ker f_ker@yahoo.co.uk
Wed Mar 13 14:59:00 GMT 2002


 --- Reichelt <reichelt@igpm.rwth-aachen.de> wrote: > Hi,
> 
> the whole problem boils down to the following code snippet:
> 
> ------------------------snip here------------------------
> template <typename T, typename U> struct A
> {
>     template <typename V> class SubA {};
> };
> 
> template <typename T> struct B : public A<T,int>::SubA<int> {};
> 
> B<int> b;
> ------------------------snip here------------------------
> 
> Compiling it with "g++ -c" (2.95.3, 3.0.x and 3.1 20020311)
> on mips-sgi-irix6.5 or i686-pc-linux-gnu I get
> 
> bug.cpp: In instantiation of `B<int>':
> bug.cpp:8:   instantiated from here
> bug.cpp:6: Internal error: Segmentation fault
> Please submit a full bug report, [etc.]
> 
> Greetings,
> Volker Reichelt
> 
>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5931
> 
>  

Thanks...
I didn't think anybody would try to fix the problem so soon....
That's the beauty of Free Software for you!
p.s. AOL are dumping MSIE for Mozilla... how about that? :-)


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the Gcc-bugs mailing list