<?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 non-integral-switch-cond.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>878a24ee - Reapply &quot;Fix crash on switch conditions of non-integer types in templates&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp#878a24ee</link>
        <description>Reapply &quot;Fix crash on switch conditions of non-integer types in templates&quot;This patch reapplies commit 759948467ea. Patch was reverted due to aclang-tidy test fail on Windows. The test has been modified. Thereare no additional code changes.Patch was tested with ninja check-all on Windows and Linux.Summary of code changes:Clang currently crashes for switch statements inside a template when thecondition is a non-integer field member because contextual implicitconversion is skipped when parsing the condition. This conversion ishowever later checked in an assert when the case statement is handled.The conversion is skipped when parsing the condition becausethe field member is set as type-dependent based on its containing class.This patch sets the type dependency based on the field&apos;s type instead.This patch fixes Bug 40982.

            List of files:
            /llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp</description>
        <pubDate>Tue, 03 Dec 2019 22:20:52 +0000</pubDate>
        <dc:creator>Elizabeth Andrews &lt;elizabeth.andrews@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>75994846 - Reapply &quot;Fix crash on switch conditions of non-integer types in templates&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp#75994846</link>
        <description>Reapply &quot;Fix crash on switch conditions of non-integer types in templates&quot;This patch reapplies commit 76945821b9cad3. The first version brokebuildbots due to clang-tidy test fails. The fails are because someerrors in templates are now diagnosed earlier (does not wait tillinstantiation). I have modified the tests to add checks for thesediagnostics/prevent these diagnostics. There are no additional codechanges.Summary of code changes:Clang currently crashes for switch statements inside a template when thecondition is a non-integer field member because contextual implicitconversion is skipped when parsing the condition. This conversion ishowever later checked in an assert when the case statement is handled.The conversion is skipped when parsing the condition becausethe field member is set as type-dependent based on its containing class.This patch sets the type dependency based on the field&apos;s type instead.This patch fixes Bug 40982.Reviewers: rnk, gribozavr2Patch by: Elizabeth Andrews (eandrews)Differential revision: https://reviews.llvm.org/D69950

            List of files:
            /llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp</description>
        <pubDate>Fri, 08 Nov 2019 18:14:51 +0000</pubDate>
        <dc:creator>Melanie Blower &lt;melanie.blower@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>76945821 - Fix crash on switch conditions of non-integer types in templates</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp#76945821</link>
        <description>Fix crash on switch conditions of non-integer types in templatesClang currently crashes for switch statements inside a template whenthe condition is a non-integer field. The crash is due to incorrecttype-dependency of field. Type-dependency of member expressions iscurrently set based on the containing class. This patch changes this for&apos;members of the current instantiation&apos; to set the type dependency basedon the member&apos;s type instead.A few lit tests started to fail once I applied this patch because errorsare now diagnosed earlier (does not wait till instantiation). I&apos;ve modifiedthese tests in this patch as well.Patch fixes PR#40982Differential Revision: https://reviews.llvm.org/D61027llvm-svn: 368706

            List of files:
            /llvm-project-15.0.7/clang/test/SemaTemplate/non-integral-switch-cond.cpp</description>
        <pubDate>Tue, 13 Aug 2019 15:53:19 +0000</pubDate>
        <dc:creator>Elizabeth Andrews &lt;elizabeth.andrews@intel.com&gt;</dc:creator>
    </item>
</channel>
</rss>
