Re: c++/10716: ICE in tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5987

[email protected]
Newsgroups gmane.comp.gcc.prs,gmane.comp.gcc.bugs
Message-ID <[email protected]>
Synopsis: ICE in tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5987

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Sun May 18 17:28:32 2003
State-Changed-Why:
    Redux:
    
    template <bool Cond>
            struct A { };
    template <typename p>
            struct B { typedef int car; };
    template <typename Top>
            struct C {
                    template <int pos>
                    typename B<typename A<INVALID>::result>::car f ();
            };
    C<int> x;
    
    I get a different message with 3.3-release due to a missing
    --enable-checking. This redux also ICEs 3.4 but at a different
    line number.
    
    Output of 3.3 WITHOUT treecheck output:
    10716.cc: In instantiation of `C<int>':
    10716.cc:10:   instantiated from here
    10716.cc:8: error: `INVALID' was not declared in this scope
    10716.cc:8: confused by earlier errors, bailing out
    
    Output of somewhat dated 3.4 WITH tree checking:
    10716.cc:8: error: `INVALID' has not been declared
    10716.cc:8: error: template argument 1 is invalid
    10716.cc:8: internal compiler error: tree check: expected class 't', have 'x' (
       error_mark) in make_typename_type, at cp/decl.c:5498
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    
        regards  Christian

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10716
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.