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

            Bug ID: 70698
           Summary: ICE in autoconf test for C++11 features
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kreckel at ginac dot de
  Target Milestone: ---

Created attachment 38292
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38292&action=edit
test case

GCC 6.0.1-RC-20160415 segfaults on the attached test program which is part of
AX_CXX_COMPILE_STDCXX_11 serial version number 13:
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/data/scratch/gcc-6.0.1/libexec/gcc/x86_64-pc-linux-gnu/6.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-6.0.1-RC-20160415/configure --enable-languages=c,c++
--prefix=/data/scratch/gcc-6.0.1 --enable-checking=release --disable-multilib
--disable-nls
Thread model: posix
gcc version 6.0.1 20160415 (prerelease) (GCC) 
$ g++ conftest.cpp
conftest.cpp:165:27:   in constexpr expansion of
'cxx11::test_constexpr::strlen_c<char>(((const char*)"1"))'
conftest.cpp:161:24:   in constexpr expansion of
'cxx11::test_constexpr::strlen_c_r<char>(((const char*)s), 0ul)'
conftest.cpp:154:29:   in constexpr expansion of
'cxx11::test_constexpr::strlen_c_r<char>((((const char*)s) + 1u), (((long
unsigned int)acc) + 1ul))'
conftest.cpp:165:44: internal compiler error: Segmentation fault
     static_assert(strlen_c("1") == 1UL, "");
                                            ^
0xabb5bf crash_signal
        ../../gcc-6.0.1-RC-20160415/gcc/toplev.c:335
0x6ed483 get_fundef_copy
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:1010
0x6ed483 cxx_eval_call_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:1453
0x6ef2af cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3556
0x6ef399 cxx_eval_conditional_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:1798
0x6ef399 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3855
0x6f0d91 cxx_eval_store_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3123
0x6eeadc cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3633
0x6ee6c8 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3645
0x6ee8c5 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3672
0x6ee8c5 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3672
0x6eda0a cxx_eval_call_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:1494
0x6ef2af cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3556
0x6f0d91 cxx_eval_store_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3123
0x6eeadc cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3633
0x6ee6c8 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3645
0x6ee8c5 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3672
0x6ee8c5 cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3672
0x6eda0a cxx_eval_call_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:1494
0x6ef2af cxx_eval_constant_expression
        ../../gcc-6.0.1-RC-20160415/gcc/cp/constexpr.c:3556
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.

The last snapshot 20160410 still worked (as do all previous releases).

Reply via email to