On 2011-09-03 I wrote:
> I guess that clang hangs or produces an endless loop because of
> this inline definition in <wchar.h>:
> 
> extern wint_t __btowc_alias (int __c) __asm ("btowc");
> __extern_inline wint_t
> __NTH (btowc (int __c))
> { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
>           ? (wint_t) __c : __btowc_alias (__c)); }
> 
> Evidently, clang gives a different semantics to __asm than GCC.
> But GCC's semantics of __asm is fixed for 20 years.
> 
> Conclusion: Needs to be fixed in clang.

And it's confirmed by this bug report in clang's bug tracker:
<http://llvm.org/bugs/show_bug.cgi?id=9614>

Bruno
-- 
In memoriam Moshe Weinberg <http://en.wikipedia.org/wiki/Moshe_Weinberg>

Reply via email to