[cfe-users] Use of backtrace.h in Clang

2018-10-23 Thread Luis Carril via cfe-users
Hello, I'm trying to use a header only available in GCC in Clang, such as "backtrace.h", and currently Clang does not add to the search paths the GCC installation: - root@2b9d90feb564:/opt# echo "#include \n void main(){}" | clang-6.0 -v -xc - clang version 6.0.1-svn334776-1~exp1~20181

[cfe-users] dynmaic_cast in uninstantiated function templates

2018-10-23 Thread via cfe-users
Hi list, the code below compiles on gcc and icc, but not on clang with the error: source_file.cpp:14:16: error: 'B' is an incomplete type if (auto b = dynamic_cast(a)) However fn is an uninstantiated function template. Is this a glitch in clang or is clang the only one right here? Best Olaf