r197995 - Don't reserve __builtin_types_compatible_p as a C++ keyword

İsmail Dönmez ismail at donmez.ws
Fri Dec 27 11:08:03 PST 2013


Hi again,



On Fri, Dec 27, 2013 at 12:56 PM, İsmail Dönmez <ismail at donmez.ws> wrote:

> Hi,
>
>
> On Wed, Dec 25, 2013 at 3:47 AM, Alp Toker <alp at nuanti.com> wrote:
>>
>> --- cfe/trunk/test/SemaCXX/types_compatible_p.cpp (original)
>> +++ cfe/trunk/test/SemaCXX/types_compatible_p.cpp Tue Dec 24 19:47:02 2013
>> @@ -1,5 +1,8 @@
>> -// RUN: %clang_cc1 -fsyntax-only -verify %s
>> +// RUN: %clang_cc1 -fsyntax-only -verify -x c++ %s
>> +// RUN: %clang_cc1 -fsyntax-only -x c %s
>>
>> -bool f() {
>> -  return __builtin_types_compatible_p(int, const int); //
>> expected-error{{C++}}
>> +// Test that GNU C extension __builtin_types_compatible_p() is not
>> available in C++ mode.
>> +
>> +int f() {
>> +  return __builtin_types_compatible_p(int, const int); //
>> expected-error{{}}
>>  }
>>
>
> This is failing here with my armv7 linux non-asserts build:
>
>  FAIL: Clang :: SemaCXX/types_compatible_p.cpp (4988 of 16328)
> ******************** TEST 'Clang :: SemaCXX/types_compatible_p.cpp' FAILED
> ********************
> Script:
> --
> /havana/work/llvm/build/Release/bin/clang -cc1 -internal-isystem
> /havana/work/llvm/build/Release/bin/../lib/clang/3.5/include -fsyntax-only
> -verify -x c++
> /havana/work/llvm/tools/clang/test/SemaCXX/types_compatible_p.cpp
> /havana/work/llvm/build/Release/bin/clang -cc1 -internal-isystem
> /havana/work/llvm/build/Release/bin/../lib/clang/3.5/include -fsyntax-only
> -x c /havana/work/llvm/tools/clang/test/SemaCXX/types_compatible_p.cpp
> --
> Exit Code: 1
>
> Command Output (stderr):
> --
> error: 'error' diagnostics expected but not seen:
>   File /havana/work/llvm/tools/clang/test/SemaCXX/types_compatible_p.cpp
> Line 7:
> 1 error generated.
>

A clean rebuild fixed the issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131227/6691a852/attachment.html>


More information about the cfe-commits mailing list