[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: FindKDE4Internal.cmake & clang & c++11 & -fdelayed-template-parsing
From:       Thiago Macieira <thiago () kde ! org>
Date:       2013-10-12 16:46:58
Message-ID: 7694652.JuygUjZHWO () tjmaciei-mobl2
[Download RAW message or body]


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) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic