This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/8772: Segmentation fault on 3 lines of template code
- From: sneechy at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 1 Dec 2002 03:42:27 -0000
- Subject: c++/8772: Segmentation fault on 3 lines of template code
- Reply-to: sneechy at hotmail dot com
>Number: 8772
>Category: c++
>Synopsis: Segmentation fault on 3 lines of template code
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sat Nov 30 19:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: sneechy@hotmail.com
>Release: gcc version 3.2 (mingw special 20020817-1)
>Organization:
>Environment:
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
>Description:
Compiling the following three lines of code:
template <int> struct A { template <int> struct B { enum { v = 1 }; }; };
template <template <int> class F> struct C { enum { v = F<1>::v || 2 }; };
template <int n> struct D { enum { v = C<A<n>::B>::v }; };
Result in an segmentation fault.
>How-To-Repeat:
See description.
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
>Unformatted: