<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in array-bounds-strict-flex-arrays.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>f764dc99 - [clang] Introduce -fstrict-flex-arrays=&lt;n&gt; for stricter handling of flexible arrays</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/array-bounds-strict-flex-arrays.cpp#f764dc99</link>
        <description>[clang] Introduce -fstrict-flex-arrays=&lt;n&gt; for stricter handling of flexible arraysSome code [0] consider that trailing arrays are flexible, whatever their size.Support for these legacy code has been introduced inf8f632498307d22e10fab0704548b270b15f1e1e but it prevents evaluation of__builtin_object_size and __builtin_dynamic_object_size in some legit cases.Introduce -fstrict-flex-arrays=&lt;n&gt; to have stricter conformance when it isdesirable.n = 0: current behavior, any trailing array member is a flexible array. The default.n = 1: any trailing array member of undefined, 0 or 1 size is a flexible array membern = 2: any trailing array member of undefined or 0 size is a flexible array memberThis takes into account two specificities of clang: array bounds as macro iddisqualify FAM, as well as non standard layout.Similar patch for gcc discuss here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836[0] https://docs.freebsd.org/en/books/developers-handbook/sockets/#sockets-essential-functions

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/array-bounds-strict-flex-arrays.cpp</description>
        <pubDate>Tue, 28 Jun 2022 09:01:55 +0000</pubDate>
        <dc:creator>serge-sans-paille &lt;sguelton@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>886715af - [clang] Introduce -fstrict-flex-arrays=&lt;n&gt; for stricter handling of flexible arrays</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/array-bounds-strict-flex-arrays.cpp#886715af</link>
        <description>[clang] Introduce -fstrict-flex-arrays=&lt;n&gt; for stricter handling of flexible arraysSome code [0] consider that trailing arrays are flexible, whatever their size.Support for these legacy code has been introduced inf8f632498307d22e10fab0704548b270b15f1e1e but it prevents evaluation of__builtin_object_size and __builtin_dynamic_object_size in some legit cases.Introduce -fstrict-flex-arrays=&lt;n&gt; to have stricter conformance when it isdesirable.n = 0: current behavior, any trailing array member is a flexible array. The default.n = 1: any trailing array member of undefined, 0 or 1 size is a flexible array membern = 2: any trailing array member of undefined or 0 size is a flexible array membern = 3: any trailing array member of undefined size is a flexible array member (strict c99 conformance)Similar patch for gcc discuss here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836[0] https://docs.freebsd.org/en/books/developers-handbook/sockets/#sockets-essential-functions

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/array-bounds-strict-flex-arrays.cpp</description>
        <pubDate>Thu, 02 Jun 2022 06:53:45 +0000</pubDate>
        <dc:creator>serge-sans-paille &lt;sguelton@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
