<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div><br></div><div>On Tue, Feb 25, 2020, at 08:34, Rémi Denis-Courmont wrote:<br></div><blockquote id="qt" type="cite"><div>Hi,<br></div><div><br></div><div>Clang 7 supports what you call C17. It even has a compiler flag for it explicitly. That's all in the LLVM and Clang documentation.<br></div><div><br></div><div>Ergo it works or your compiler is buggy.<br></div></blockquote><div><br></div><div>I think that is what ePirat said, clang 7 has the bug.<br></div><div><br></div><div>Could it be possible to enable this cast on a ifdef clang < 7 ? <br></div><div><br></div><div>That way, we can easily remove later when we drop clang 7 support.<br></div><div><br></div><blockquote id="qt" type="cite"><div><br></div><div class="qt-gmail_quote"><div>Le 25 février 2020 08:36:39 GMT+02:00, Marvin Scholz <epirat07@gmail.com> a écrit :<br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><pre class="qt-k9mail"><div>On 25 Feb 2020, at 6:56, Rémi Denis-Courmont wrote:<br></div><div><br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(114, 159, 207);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>Le maanantaina 24. helmikuuta 2020, 17.45.07 EET Marvin Scholz a <br></div><div>écrit :<br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(173, 127, 168);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>even though it never modifies it.<br></div><div>Clang versions 7 or older did implement this quite strictly and<br></div><div>therefore errors when compiling this code:<br></div></blockquote><div>That's either a bug in that compiler version or possibly a minor <br></div><div>update not<br></div><div>installed, or mistaken compiler flag (in other words, configure script <br></div><div>bug).<br></div><div>Clang 7 officially supports C17/C18.<br></div></blockquote><div><br></div><div>I tested all major versions before 7 and all are affected.<br></div><div>I can’t easily test minor versions between 7 or 8 as they are not <br></div><div>available<br></div><div>on godbolt. Looking at the git repository though it seems the first <br></div><div>fixed<br></div><div>version was 8.0.0.<br></div><div><br></div><div>Not sure what you mean by mistaken compiler flag here?<br></div><div><br></div><div>><br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(114, 159, 207);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div> And to call it C17 is a bit of a stretch. It's really just an <br></div><div> re-edition of<br></div><div> C11 with editorial corrections gathered. The atomic spelling error was <br></div><div> already<br></div><div> found and corrected in 2014.<br></div></blockquote><div><br></div><div>It’s called C17 on open-std.org, thats why I used that here, not sure <br></div><div>what else to<br></div><div>call it.<br></div><div><br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(114, 159, 207);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div> -- <br></div><div> Реми Дёни-Курмон<br></div><div> <a href="http://www.remlab.net/">http://www.remlab.net/</a><hr> vlc-devel mailing list<br></div><div> To unsubscribe or modify your subscription options:<br></div><div> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote><div><hr>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></pre></blockquote></div><div><br></div><div>-- <br></div><div>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>