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]

c++/10552: Small sample using nested templates causes internal compiler error.


>Number:         10552
>Category:       c++
>Synopsis:       Small sample using nested templates causes internal compiler error.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 19:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Eelis van der Weegen
>Release:        gcc versions 3.2.2 and 3.2.1
>Organization:
>Environment:
My Windows workstation:
gcc version 3.2.2 (mingw special 20030208-1)
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c++,f77,objc --disable-win32-registry --disable-shared --enable-sjlj-exceptions
Thread model: win32

Also reproduced on my Slackware Linux box:
gcc version 3.2.1
Configured with: ../gcc-3.2.1/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
>Description:
Compiling the following code:

  template <template <typename> class A, typename>
  struct B
  {
    typedef typename A<int>::t t;
  };

  template <typename D>
  struct E
  {
    template <typename> struct F { typedef int t; };
    typedef typename B<F, D>::t t;
  };

  typedef E<int>::t t;

results in the following error:

  internal error: Segmentation fault

>How-To-Repeat:
Try compiling the code from the description.
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
>Unformatted:


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