From kde-core-devel Sat Oct 12 10:42:50 2013 From: Milian Wolff Date: Sat, 12 Oct 2013 10:42:50 +0000 To: kde-core-devel Subject: FindKDE4Internal.cmake & clang & c++11 & -fdelayed-template-parsing Message-Id: <4399590.l62yYnFFMI () minime> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=138157459706783 Hey Raphael! Thank you for working on clang support in FindKDE4Internal.cmake. Since recently though I have build issues with clang due to the -fdelayed- template-parsing flag passed in FindKDE4Internal.cmake. A simple example such as this: #include int main() { std::vector v; return 0; } produces with: clang++ -std=c++11 -fdelayed-template-parsing test.cpp In file included from test.cpp:1: In file included from /usr/lib64/gcc/x86_64-unknown-linux- gnu/4.8.1/../../../../include/c++/4.8.1/vector:62: In file included from /usr/lib64/gcc/x86_64-unknown-linux- gnu/4.8.1/../../../../include/c++/4.8.1/bits/stl_construct.h:61: In file included from /usr/lib64/gcc/x86_64-unknown-linux- gnu/4.8.1/../../../../include/c++/4.8.1/ext/alloc_traits.h:36: /usr/lib64/gcc/x86_64-unknown-linux- gnu/4.8.1/../../../../include/c++/4.8.1/bits/alloc_traits.h:57:35: error: in- class initializer for static data member is not a constant expression static const bool __value = _S_chk<_Alloc, _Tp>(nullptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Apparently, delayed template parsing is not yet mature. So - can we disable it in FindKDE4Internal.cmake again? Or do you know a workaround for that? Bye -- Milian Wolff mail@milianw.de http://milianw.de