[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:       Mark Kretschmann <kretschmann () kde ! org>
Date:       2013-10-22 12:08:23
Message-ID: CAGzDjiP+9MBMjE3CSscBveiaogohsjqRJ4QN017=NGReCj4Vow () mail ! gmail ! com
[Download RAW message or body]

On Sat, Oct 12, 2013 at 6:46 PM, Thiago Macieira <thiago@kde.org> 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: http://llvm.org/bugs/show_bug.cgi?id=15651

-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
http://amarok.kde.org - http://fsfe.org
[prev in list] [next in list] [prev in thread] [next in thread] 

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