public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11987] New: ICE/accepts-invalid with inherited nested type
@ 2003-08-19 22:51 bangerth at dealii dot org
  2003-08-19 23:13 ` [Bug c++/11987] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2003-08-19 22:51 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-09-27 20:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-19 22:51 [Bug c++/11987] New: ICE/accepts-invalid with inherited nested type bangerth at dealii dot org
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

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).