FindKDE4Internal.cmake & clang & c++11 & -fdelayed-template-parsing

Mark Kretschmann kretschmann at
Tue Oct 22 13:08:23 BST 2013

On Sat, Oct 12, 2013 at 6:46 PM, Thiago Macieira <thiago at> wrote:
> On sábado, 12 de outubro de 2013 12:42:50, Milian Wolff wrote:
>> 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 <vector>
>> int main() { std::vector<int> v; return 0; }
>> produces with: clang++ -std=c++11 -fdelayed-template-parsing test.cpp
> Remove it forever. It's not necessary in proper C++ code.
> It's only necessary to emulate buggy MSVC behaviour, which we should only use
> for Clang on Windows and then only if we run into trouble compiling code
> coming from Microsoft.

Yes, please remove the flag. Amarok has recently started using C++11,
and we ran into the same issue.

The culprit is btw this:

Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe -

More information about the kde-core-devel mailing list