This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10552: Small sample using nested templates causes internal compiler error.
- From: gccbugs at contacts dot eelis dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 Apr 2003 19:22:42 -0000
- Subject: c++/10552: Small sample using nested templates causes internal compiler error.
- Reply-to: gccbugs at contacts dot eelis dot net
>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: