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++/60493] g++ throws segmentation fault on simple code


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
template <class T, class U>
struct foo
{
};
template <class T>
struct baz
{
  class bar;
};

template <class T, class D>
struct baz<T>::bar : foo<int, D>
{
};

baz<int>::bar it;

Fails even with r90000, or g++ 3.2, so probably not a regression.


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