public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dodji at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/42225] [4.5 Regression] GCC 4.5 ICE (segfault) on C++ templated code
Date: Tue, 01 Dec 2009 00:26:00 -0000	[thread overview]
Message-ID: <20091201002627.11173.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42225-18502@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from dodji at gcc dot gnu dot org  2009-12-01 00:26 -------
A reduced test case seems to be:

~=~
template<class T>
struct A
{
    typedef T I;
};

template<class T, int>
struct B
{   
    typedef T TT;
    typedef typename TT::I TT_I;
    typedef A<TT_I> TA;
};  

template<class T>
void  
foo() 
{
    typedef T TT;
    typedef typename TT::I TT_I;
    typedef A<TT_I> TA;
}

int
main ()
{
    foo<A<int> >();
}
~=~

It ICEs with:
test.cc:27:18:   instantiated from here
test.cc:21:21: internal compiler error: tree check: accessed elt 2 of tree_vec
with 1 elts in tsubst, at cp/pt.c:9823


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42225


  parent reply	other threads:[~2009-12-01  0:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  4:14 [Bug c++/42225] New: " jacob dot benoit dot 1 at gmail dot com
2009-11-30  4:17 ` [Bug c++/42225] " jacob dot benoit dot 1 at gmail dot com
2009-11-30 10:33 ` [Bug c++/42225] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-11-30 23:01 ` dodji at gcc dot gnu dot org
2009-12-01  0:26 ` dodji at gcc dot gnu dot org [this message]
2009-12-01  0:28 ` hjl dot tools at gmail dot com
2009-12-03 14:07 ` dodji at gcc dot gnu dot org
2009-12-11 14:36 ` dodji at gcc dot gnu dot org
2009-12-11 14:37 ` dodji at gcc dot gnu dot org
2009-12-11 17:07 ` jacob dot benoit dot 1 at gmail dot com
2009-12-11 17:11 ` jacob dot benoit dot 1 at gmail dot com
2009-12-11 17:24 ` hjl dot tools at gmail dot com
2009-12-11 22:12 ` dodji at gcc dot gnu dot org
2009-12-11 22:47 ` dodji at gcc dot gnu dot org
2009-12-11 22:51 ` jacob dot benoit dot 1 at gmail dot com
2009-12-11 23:39 ` hjl at gcc dot gnu dot org
2009-12-14  8:24 ` dodji at gcc dot gnu dot org
2009-12-14 12:43 ` jacob dot benoit dot 1 at gmail dot com
2009-12-14 13:03 ` rguenth at gcc dot gnu dot org
2009-12-19 22:41 ` dodji at gcc dot gnu dot org
2009-12-19 22:44 ` dodji at gcc dot gnu dot org
2009-12-21 18:59 ` jacob dot benoit dot 1 at gmail dot com
2009-12-22 18:18 ` hjl at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091201002627.11173.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).