<?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 PR31422.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>1e9c0cec - [Sema] Avoids an assertion failure when an invalid conversion declaration is used</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/PR31422.cpp#1e9c0cec</link>
        <description>[Sema] Avoids an assertion failure when an invalid conversion declaration is usedSummary:When using a user-defined conversion function template with a deduced return type the compiler gives a set of warnings:```bug.cc:252:44: error: cannot specify any part of a return type in the declaration of a conversion function; use an alias template to declare a conversion to &apos;auto (Ts &amp;&amp;...) const&apos;  template &lt;typename... Ts&gt; operator auto()(Ts &amp;&amp;... xs) const;                                           ^~~~~~~~~~~~~~~~~~~bug.cc:252:29: error: conversion function cannot convert to a function type  template &lt;typename... Ts&gt; operator auto()(Ts &amp;&amp;... xs) const;                            ^error: pointer to function type cannot have &apos;const&apos; qualifier```after which it triggers an assertion failure. It seems the last error is incorrect and doesn&apos;t have any location information. This patch stops the compilation after the second warning.Fixes bug 31422.Patch by Mark de Wever!Reviewers: rsmithReviewed By: rsmithSubscribers: bbannier, cfe-commitsTags: #clangDifferential Revision: https://reviews.llvm.org/D64820llvm-svn: 373862

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/PR31422.cpp</description>
        <pubDate>Sun, 06 Oct 2019 18:40:59 +0000</pubDate>
        <dc:creator>Richard Smith &lt;richard-llvm@metafoo.co.uk&gt;</dc:creator>
    </item>
</channel>
</rss>
