c++/10722: ICE after "error: expected a type, got `pm::nothing'"

ehrhardt@mathematik.uni-ulm.de ehrhardt@mathematik.uni-ulm.de
Wed May 14 17:30:00 GMT 2003


Synopsis: ICE after "error:   expected a type, got `pm::nothing'"

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Wed May 14 16:59:08 2003
State-Changed-Why:
    Reduced testcase for 3.3:
    ============= cut ==========
    template <class  P, class Q>
    struct pair {};
    
    template <typename T>
    struct pair<T, INVALID> {
            typedef T first_type;
    };
    ============= cut ==========
    
    ICE is 3.3-only. 3.4 has a different ICE with the original testcase
    
    Segfault is in constructor_name_full at cp/decl2.c:1240 because
    the parameter thing is NULL.
    
    Reduced testcase for 3.4 is:
    ============= cut ==========
    template <class P> struct spec_object_traits {};
    template <class P, class Q> struct pair {};
    template <typename T1>
    struct spec_object_traits< pair<T1, INVALID> > :
    spec_object_traits<T1> { };
    ============= cut ==========
    
    This is a tree-checking ICE in xref_basetypes at cp/decl.c:12788
    where we need an error_mark check.
    
    
        regards  Christian
    

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



More information about the Gcc-bugs mailing list