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++/11987] New: ICE/accepts-invalid with inherited nested type Date: Tue, 19 Aug 2003 22:51:00 -0000 [thread overview] Message-ID: <20030819225102.11987.bangerth@dealii.org> (raw) PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11987 Summary: ICE/accepts-invalid with inherited nested type Product: gcc Version: 3.4 Status: UNCONFIRMED Keywords: ice-on-invalid-code, accepts-invalid Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org CC: gcc-bugs at gcc dot gnu dot org This piece of invalid code ---------------------------------------- template <int dim> struct X { struct I { I(); }; }; template <int dim> struct Y : X<dim> { typedef typename X<dim>::I I; }; template <int dim> Y<dim>::I::I () {} // note: I is nested type in X, not Y! template struct Y<1>; ------------------------------------------------ ICEs everything up to and including 3.3: parameter-estimation/libparest> /ices/bangerth/bin/gcc-3.3/bin/g++ -c x.cc x.cc:10: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. On the other hand, present mainline accepts it, which I think is spurious. So we traded an ICE for an accepts-invalid. W.
next reply other threads:[~2003-08-19 22:51 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-08-19 22:51 bangerth at dealii dot org [this message] 2003-08-19 23:13 ` [Bug c++/11987] " pinskia at gcc dot gnu dot org 2003-08-23 1:23 ` [Bug c++/11987] [3.4 regression] " dhazeghi at yahoo dot com 2003-10-24 15:27 ` [Bug c++/11987] [3.4 regression] Accepts-invalid " lerdsuwa at gcc dot gnu dot org 2004-02-03 14:06 ` [Bug c++/11987] [3.4/3.5 " giovannibajo at libero dot it 2004-02-03 14:34 ` bangerth at dealii dot org 2004-02-28 2:31 ` mmitchel at gcc dot gnu dot org 2004-06-12 21:53 ` mmitchel at gcc dot gnu dot org 2005-04-21 4:58 ` [Bug c++/11987] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org 2005-07-08 1:38 ` mmitchel at gcc dot gnu dot org 2005-09-27 20:58 ` mmitchel 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=20030819225102.11987.bangerth@dealii.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).