Author
anonymous
about 4 years ago
Language
C++
Compiler
clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git fcdf7f6224610a51dc2ff47f2f1e3377329b64a7)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
Raw compiler options
-ftemplate-depth=4097
Author
anonymous
about 4 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b -ftemplate-depth=4097
prog.cc:11:16: warning: stack nearly exhausted; compilation time may suffer, and crashes due to stack overflow are likely [-Wstack-exhausted]
return make_p<T*, N - 1>();
^
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, 3369>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, 3370>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, 3371>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, 3372>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, 3373>' requested here
prog.cc:11:16: note: (skipping 718 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int ****, 4092>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int ***, 4093>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int **, 4094>' requested here
prog.cc:11:16: note: in instantiation of function template specialization 'make_p<int *, 4095>' requested here
prog.cc:16:14: note: in instantiation of function template specialization 'make_p<int, 4096>' requested here
auto p = make_p<int, 4096>();
^
clang-13: error: unable to execute command: Segmentation fault (core dumped)
clang-13: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 13.0.0 (https://github.com/llvm/llvm-project.git fcdf7f6224610a51dc2ff47f2f1e3377329b64a7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/wandbox/clang-head/bin
clang-13: error: unable to execute command: File size limit exceeded (core dumped)
clang-13: note: diagnostic msg: Error generating preprocessed source(s).
Exit Code:
254