https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63956
Bug ID: 63956
Summary: [5 Regression][UBSAN] ICE segfault in
cxx_eval_call_expression ../../gcc/cp/constexpr.c
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org,
mpolacek at gcc dot gnu.org
Created attachment 34035
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34035&action=edit
Test case (scan16.ii)
That's a new regression. It was working when I reduce PR63813 (i.e. on
2014-11-11) as that ICE came later. It now ICEs with todays GCC (r217759).
g++ -S -std=c++11 -fsanitize=undefined scan16.ii
scan16.ii:51:28: in constexpr expansion of
‘std::validator.std::unique_ptr<std::Validator>::unique_ptr()’
scan16.ii:51:28: internal compiler error: Segmentation fault
unique_ptr < Validator > validator;
^
0xcba72f crash_signal
../../gcc/toplev.c:359
0x81ea9a cxx_eval_call_expression
../../gcc/cp/constexpr.c:1147
0x820b1c cxx_eval_constant_expression
../../gcc/cp/constexpr.c:2864