https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362

--- Comment #22 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Created attachment 33664
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33664&action=edit
Preprocessed source for is_trivially_copy_constructible tests

This test fails the static_assert for TType (which is a trivial type),
PODType and DelDef, and it would be expected that all those static_asserts
succeed. Then, the compiler segfaults, trace:

[ville@localhost is_trivially_copy_constructible]$ g++ -v -save-temps
--std=c++11 -I ../../util/ -c value.cc
Using built-in specs.
COLLECT_GCC=/usr/local/bin/g++
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr/local --enable-languages=c,c++
Thread model: posix
gcc version 5.0.0 20141008 (experimental) (GCC) 

COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-I' '../../util/' '-c'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1plus -E -quiet -v -I
../../util/ -D_GNU_SOURCE value.cc -mtune=generic -march=x86-64 -std=c++11
-fpch-preprocess -o value.ii
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 ../../util/

/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0

/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/x86_64-unknown-linux-gnu

/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/backward
 /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include
 /usr/local/include
 /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-I' '../../util/' '-c'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1plus -fpreprocessed
value.ii -quiet -dumpbase value.cc -mtune=generic -march=x86-64 -auxbase value
-std=c++11 -version -o value.s
GNU C++ (GCC) version 5.0.0 20141008 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 5.0.0 20141008 (experimental), GMP version 5.0.2,
MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 5.0.0 20141008 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 5.0.0 20141008 (experimental), GMP version 5.0.2,
MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 7d1439b3948ab95e7d138f746bcfda79
value.cc: In function ‘void test01()’:
value.cc:40:3: error: static assertion failed: 
   static_assert(test_category<is_trivially_copy_constructible, 
   ^
value.cc:42:3: error: static assertion failed: 
   static_assert(test_category<is_trivially_copy_constructible, 
   ^
value.cc:48:3: error: static assertion failed: 
   static_assert(test_category<is_trivially_copy_constructible, 
   ^
g++: internal compiler error: Segmentation fault (program cc1plus)
0x40c49c execute
    ../../gcc/gcc.c:2908
0x40c789 do_spec_1
    ../../gcc/gcc.c:4724
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
0x40d2e7 do_spec_1
    ../../gcc/gcc.c:5378
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
0x40d2e7 do_spec_1
    ../../gcc/gcc.c:5378
0x40cc13 do_spec_1
    ../../gcc/gcc.c:5493
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
0x40d2e7 do_spec_1
    ../../gcc/gcc.c:5378
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
0x40d2e7 do_spec_1
    ../../gcc/gcc.c:5378
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
0x40d2e7 do_spec_1
    ../../gcc/gcc.c:5378
0x40f189 process_brace_body
    ../../gcc/gcc.c:6007
0x40f189 handle_braces
    ../../gcc/gcc.c:5921
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to