https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98282
Bug ID: 98282 Summary: Segmentation fault when compiling with optimization >= 2 Product: gcc Version: 7.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bengilgit at gmail dot com Target Milestone: --- Compilation of the attached preprocessed source produces an internal compiler error: $ /usr/bin/g++ -O2 -c ../scalar_cast_nested.cc.preprocessed.cc ../src/arrow/compute/kernels/scalar_cast_nested.cc: In function ‘void arrow::compute::internal::CastListExec(arrow::compute::KernelContext*, const arrow::compute::ExecBatch&, arrow::Datum*) [with Type = arrow::ListType]’: ../src/arrow/compute/kernels/scalar_cast_nested.cc:33:6: internal compiler error: Segmentation fault void CastListExec(KernelContext* ctx, const ExecBatch& batch, Datum* out) { ^~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. $ /usr/bin/g++ --version g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Bisection indicates this is ultimately caused by replacing `nonstd::variant` with an in-house implementation, change at: https://github.com/apache/arrow/pull/8472