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

Thiago Macieira thiago at
Sat Oct 12 17:46:58 BST 2013

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.

Thiago Macieira - thiago (AT) - thiago (AT)
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list