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

Alexandre Janniaux ajanni at videolabs.io
Fri Feb 28 11:00:39 CET 2020


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


More information about the vlc-devel mailing list