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

           Summary: Crash with SIGSEGV during compilation.
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: kruizi...@mail.ru


[kostik@server ~/tmp/exp]$ cat main.cpp 
template <bool> class A;
template <> class A<true> { };

template<int type>
class B {
    long unsigned C;

    typedef A<__builtin_offsetof(B, C) == 0> D;
};

int main() {
    B<0> e;
}
[kostik@server ~/tmp/exp]$ gcc44 -v -save-temps main.cpp
Using built-in specs.
Target: x86_64-portbld-freebsd7.2
Configured with: ./../gcc-4.4-20100112/configure --disable-nls
--with-system-zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local
--program-suffix=44 --libdir=/usr/local/lib/gcc44
--libexecdir=/usr/local/libexec/gcc44
--with-gxx-include-dir=/usr/local/lib/gcc44/include/c++/ --disable-libgcj
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/gcc44
--build=x86_64-portbld-freebsd7.2
Thread model: posix
gcc version 4.4.3 20100112 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic'
 /usr/local/libexec/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/cc1plus -E -quiet
-v main.cpp -mtune=generic -fpch-preprocess -o main.ii
ignoring nonexistent directory
"/usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/../../../../../x86_64-portbld-freebsd7.2/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc44/include/c++/
 /usr/local/lib/gcc44/include/c++//x86_64-portbld-freebsd7.2
 /usr/local/lib/gcc44/include/c++//backward
 /usr/local/include
 /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/include
 /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic'
 /usr/local/libexec/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/cc1plus
-fpreprocessed main.ii -quiet -dumpbase main.cpp -mtune=generic -auxbase main
-version -o main.s
GNU C++ (GCC) version 4.4.3 20100112 (prerelease) (x86_64-portbld-freebsd7.2)
        compiled by GNU C version 4.4.3 20100112 (prerelease), GMP version
4.3.2, MPFR version 2.4.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=30720
Compiler executable checksum: 216f0d8dc8a20a6d63819a57c5a389f3
main.cpp: In instantiation of 'B<0>':
main.cpp:12:   instantiated from here
main.cpp:8: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[kostik@server ~/tmp/exp]$

Reply via email to