public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/16706] [3.4/3.5 Regression] ICE in finish_member_declaration, at cp/semantics.c:2126 Date: Mon, 26 Jul 2004 00:54:00 -0000 [thread overview] Message-ID: <20040726005402.22992.qmail@sourceware.org> (raw) In-Reply-To: <20040725152539.16706.debian-gcc@lists.debian.org> ------- Additional Comments From bangerth at dealii dot org 2004-07-26 00:54 ------- I can't seem to get it smaller than this: ------------------------ template <typename> struct B { B() throw() {} struct S { }; static int i; typedef unsigned short int dummy; }; template <typename _Tp> struct allocator: B<_Tp> { template<typename _Tp1> struct rebind { typedef allocator<_Tp1> other; }; }; template<typename T, typename> struct X { typename allocator<T>::template rebind<int>::other i; typedef int* dummy; }; template <class T> class A { typedef typename X<T,allocator<T> >::dummy dummy; template <class TP> class XWrapper; }; template <class T> template <class TP> struct A<T>::XWrapper<TP *> { XWrapper() {} X<int,allocator<int> > x; }; template class A<int>::XWrapper<int *>; --------------------------------- This crashes both 3.4.x and mainline, but not 3.3.x: x/gg> /home/bangerth/bin/gcc-3.3*/bin/c++ -c x.cc x/gg> /home/bangerth/bin/gcc-3.4*/bin/c++ -c x.cc x.cc: In instantiation of `allocator<T>::rebind<int>': x.cc:16: instantiated from `X<T, allocator<T> >' x.cc:21: instantiated from `A<T>' x.cc:29: instantiated from `A<T>::XWrapper<TP*>::XWrapper() [with TP = int, T = int]' x.cc:33: instantiated from here x.cc:11: internal compiler error: in instantiate_class_template, at cp/pt.c:5404 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. x/gg> /home/bangerth/bin/gcc-3.5*/bin/c++ -c x.cc x.cc: In instantiation of `allocator<T>::rebind<int>': x.cc:16: instantiated from `X<T, allocator<T> >' x.cc:21: instantiated from `A<T>' x.cc:29: instantiated from `A<T>::XWrapper<TP*>::XWrapper() [with TP = int, T = int]' x.cc:33: instantiated from here x.cc:11: internal compiler error: in instantiate_class_template, at cp/pt.c:5440 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. W. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Known to fail| |3.4.0 3.5.0 Known to work| |3.3.4 Last reconfirmed|0000-00-00 00:00:00 |2004-07-26 00:54:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16706
next prev parent reply other threads:[~2004-07-26 0:54 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-25 15:25 [Bug c++/16706] New: " debian-gcc at lists dot debian dot org 2004-07-25 15:27 ` [Bug c++/16706] " debian-gcc at lists dot debian dot org 2004-07-25 18:07 ` [Bug c++/16706] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org 2004-07-26 0:54 ` bangerth at dealii dot org [this message] 2004-07-26 3:18 ` reichelt at gcc dot gnu dot org 2004-07-29 14:40 ` pinskia at gcc dot gnu dot org 2004-07-29 14:50 ` bangerth at dealii dot org 2004-08-01 15:08 ` lerdsuwa at gcc dot gnu dot org 2004-08-02 20:38 ` reichelt at gcc dot gnu dot org 2004-08-02 21:06 ` reichelt at gcc dot gnu dot org 2004-08-03 15:25 ` lerdsuwa at gcc dot gnu dot org 2004-08-10 20:27 ` Woebbeking at web dot de 2004-08-16 15:49 ` lerdsuwa at gcc dot gnu dot org 2004-08-23 19:23 ` mmitchel at gcc dot gnu dot org 2004-08-24 14:14 ` cvs-commit at gcc dot gnu dot org 2004-08-24 14:32 ` cvs-commit at gcc dot gnu dot org 2004-08-24 14:36 ` lerdsuwa at gcc dot gnu dot org 2004-08-24 14:36 ` lerdsuwa 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=20040726005402.22992.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: linkBe 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).