Hello,
I am not sure if it is ROOT/CLING or GCC problem, or I am doing something wrong… Here is the code, which reproduces it:
// root.exe -l string_view.C+
#include <experimental/string_view>
void string_view(void) {}
and here is output:
$ root.exe -l string_view.C+
root [0]
Processing string_view.C+…
Info in TUnixSystem::ACLiC: creating shared library …/string_view_C.so
In file included from …/CentOS7.2/gcc-6.3.0/include/c++/6.3.0/experimental/string_view:43:0,
from …/CentOS7.2/root-6.09.02/include/RStringView.h:24,
from …/CentOS7.2/root-6.09.02/include/TString.h:28,
from …/CentOS7.2/root-6.09.02/include/TNamed.h:26,
from …/CentOS7.2/root-6.09.02/include/TDictionary.h:44,
from …/CentOS7.2/root-6.09.02/include/TClass.h:24,
from …/string_view_C_ACLiC_dict.cxx:13:
…/CentOS7.2/gcc-6.3.0/include/c++/6.3.0/limits:1598:7: internal compiler error: Illegal instruction
min() _GLIBCXX_USE_NOEXCEPT { return FLT_MIN; }
^~~
0xac73ff crash_signal
…/CentOS7.2/gcc-6.3.0.source/gcc/toplev.c:333
0xa3cb5d real_from_string(real_value*, char const*)
…/CentOS7.2/gcc-6.3.0.source/gcc/real.c:2107
0xa3d5ab real_from_string3(real_value*, char const*, format_helper)
…/CentOS7.2/gcc-6.3.0.source/gcc/real.c:2173
0x73c69a interpret_float
…/CentOS7.2/gcc-6.3.0.source/gcc/c-family/c-lex.c:882
0x73d45e c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
…/CentOS7.2/gcc-6.3.0.source/gcc/c-family/c-lex.c:425
0x645efe cp_lexer_get_preprocessor_token
…/CentOS7.2/gcc-6.3.0.source/gcc/cp/parser.c:792
0x67612d cp_lexer_new_main
…/CentOS7.2/gcc-6.3.0.source/gcc/cp/parser.c:656
0x67612d cp_parser_new
…/CentOS7.2/gcc-6.3.0.source/gcc/cp/parser.c:3689
0x67612d c_parse_file()
…/CentOS7.2/gcc-6.3.0.source/gcc/cp/parser.c:37538
0x742cf2 c_common_parse_file()
…/CentOS7.2/gcc-6.3.0.source/gcc/c-family/c-opts.c:1064
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.
g++: error: …/string_view_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!
Please, let me know if you have any idea.