public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9464: [3.4 regression] ICE on missing typename
@ 2003-01-27 22:00 bangerth
  0 siblings, 0 replies; only message in thread
From: bangerth @ 2003-01-27 22:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, oldham

Old Synopsis: ICE on missing typename
New Synopsis: [3.4 regression] ICE on missing typename

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Jan 27 22:00:59 2003
State-Changed-Why:
    Confirmed. Fallout from the implicit typename deprecation.
    Here's a similar snippet, which I think is even legal since
    we don't instantiate for a particular value of T (well, legal except for the missing typename, of course):
    -----------------------------------
    template<typename T, typename A> struct X {
        typedef typename A::template foo<T>::type type;
    };
    
    template<typename T, typename = int> struct Y {
        typedef double type;
        typename X<T,T>::type t;
    };
    
    template<class T>
    struct Z {
        typedef Y<T>::type type;
    };
    -------------------------
    
    g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.ii
    x.ii: In instantiation of `Y<T, int>':
    x.ii:12:   instantiated from here
    x.ii:7: error: `Y<T, <anonymous template type parameter> >::t' has incomplete
       type
    x.ii:7: internal compiler error: in cxx_incomplete_type_diagnostic, at
       cp/typeck2.c:278
    Please submit a full bug report,
    with preprocessed source if appropriate.
    
    
    Since an ICE is worse than an error message, I rate this
    as a regression. It gave warnings about the implicit
    typename stuff with 3.3 and 3.2.2, and worked with 2.95
    
    W.

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-27 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 22:00 c++/9464: [3.4 regression] ICE on missing typename bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).