<?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 stmt-expr-in-default-arg.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>8a4d388c - [Clang][Sema] Prohibit statement expression in the default argument</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/Sema/stmt-expr-in-default-arg.cpp#8a4d388c</link>
        <description>[Clang][Sema] Prohibit statement expression in the default argumentAs statement expression makes no sense in the default argument,this patch tries to disable it in the all cases.Please note that the statement expression is a GNU extension, whichmeans that Clang should be consistent with GCC. However, there&apos;s noresponse from GCC devs since we have raised the issue for several weeks.In this case, I think we can disallow statement expressions as a defaultparameter in general for now, and relax the restriction if GCC folksdecide to retain the feature for functions but not lambdas in thefuture.Related discussion: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104765Fixes https://github.com/llvm/llvm-project/issues/53488Differential Revision: https://reviews.llvm.org/D119609

            List of files:
            /llvm-project-15.0.7/clang/test/Sema/stmt-expr-in-default-arg.cpp</description>
        <pubDate>Wed, 06 Apr 2022 00:45:46 +0000</pubDate>
        <dc:creator>Jun Zhang &lt;jun@junz.org&gt;</dc:creator>
    </item>
</channel>
</rss>
