[vlc-devel] [PATCH 2/2] thread: fix compilation with clang 7 or older

Rémi Denis-Courmont remi at remlab.net
Fri Feb 28 11:33:54 CET 2020


Hi,

You can argue whether failing to implement errata is a bug or not. In this case, it's a compiler bug anyway because it fails even in so-called C17 mode.

Le 28 février 2020 12:00:39 GMT+02:00, Alexandre Janniaux <ajanni at videolabs.io> a écrit :
>Hi,
>
>What Hugo is saying seems to be confirmed by these mails too:
>http://lists.llvm.org/pipermail/cfe-dev/2018-May/058131.html
>https://gcc.gnu.org/ml/gcc-patches/2017-10/msg02121.html
>
>and this page mention C17 as ISO/IEC 9899:2018
>https://en.cppreference.com/w/c/language/history
>
>so it seems that you should require C17 to consider it
>a compiler bug, otherwise it's just a standard defect.
>
>Regards,
>--
>Alexandre Janniaux
>Videolabs
>
>On Fri, Feb 28, 2020 at 10:34:03AM +0100, Hugo Beauzée-Luyssen wrote:
>> On Fri, Feb 28, 2020, at 10:10 AM, Rémi Denis-Courmont wrote:
>> > A strict C11 implementation follows errata. See, e.g. Clang 8, 9 or
>GCC
>> > which happily compile this code in C11 mode. This patch is wrong.
>> >
>>
>> DR459 was fixed in C17.
>> Whatever the compiler does with this DR for any other C standard
>version is their business.
>>
>> --
>>   Hugo Beauzée-Luyssen
>>   hugo at beauzee.fr
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200228/24eee70b/attachment.html>


More information about the vlc-devel mailing list