c++/4437: nested template and defines cause compiler seg fault

sallen@ati.com sallen@ati.com
Mon Oct 1 12:56:00 GMT 2001


>Number:         4437
>Category:       c++
>Synopsis:       nested template and defines cause compiler seg fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 01 12:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Steve Allen @ Ati.com
>Release:        gcc.3.0.1
>Organization:
>Environment:
System:  sparc-sun-solaris2.7
>Description:
Deeply nested template causes segment fault.  A lot of code is included because I can't seem to narrowing it down to the segfaulting case.  This code works fine on 2.95.3

Version:
        Reading specs from /tools/crayola/gnu/gcc-3.0.1/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/specs
        Configured with: ../configure --prefix=/tools/crayola/gnu/gcc-3.0.1 --with-gnu-as --with-as=/tools/crayola/gnu/bin/as --with-gnu-ld --with-ld=/tools/crayola/gnu/bin/ld --enable-threads=pthreads --enable-shared --enable-version-specific-runtime-libs --enable-languages=c++ : (reconfigured) ../configure --prefix=/tools/crayola/gnu/gcc-3.0.1 --with-gnu-as --with-as=/tools/crayola/gnu/bin/as --with-gnu-ld --with-ld=/tools/crayola/gnu/bin/ld --enable-threads --enable-shared --enable-version-specific-runtime-libs --enable-languages=c++
        Thread model: posix
        gcc version 3.0.1

Command line:
        g++ -I. template.cpp -fno-operator-names -save-temps

Command output:
        In file included from template.cpp:2:
        numbers.h:2025: Internal error: Segmentation Fault
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
g++ -I. template.cpp -fno-operator-names -save-temps
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list