c++/7294: ICE with templates

bangerth@dealii.org bangerth@dealii.org
Thu Jan 23 03:32:00 GMT 2003


Old Synopsis: GCC 3.1 problem with templates
New Synopsis: ICE with templates

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 03:24:49 2003
State-Changed-Why:
    Finally fixed with the new parser. This is a reduced testcase
    that ICEd older versions of gcc
    --------------------------------
    template<template<class> class C>
    struct X {
        typedef int i;
        C<int> Foo;
    };
    
    template<class> struct O {
        template<class> struct I {};
        typename X<I>::i i;
    };
    int main() {}
    --------------------------

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7294



More information about the Gcc-bugs mailing list