This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25523] Compiler segmentation fault



------- Comment #1 from reichelt at gcc dot gnu dot org  2005-12-22 03:37 -------
Confirmed. Reduced testcase:

========================================
template<typename> struct A
{
    struct X;
};

template<typename T> struct B : A<T>
{
    friend struct X;
    struct X {};
};
========================================

This causes a segfault with GCC 2.95.3 - GCC 3.3.6.
However, the bug is fixed since GCC 3.4.0.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |ice-on-valid-code
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]