<?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 PR25848.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>06b7a872 - Do not find friend function definitions inside non-instantiated class.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/PR25848.cpp#06b7a872</link>
        <description>Do not find friend function definitions inside non-instantiated class.Previously if a file-level function was defined inside befriendingtemplate class, it always was treated as defined. For instance, the code like:```  int func(int x);  template&lt;typename T&gt; class C1 {    friend int func(int x) { return x; }  };  template&lt;typename T&gt; class C2 {    friend int func(int x) { return x; }  };```could not be compiled due to function redefinition, although not of the templatesis instantiated. Moreover, the body of friend function can contain use of templateparameters, attempt to get definition of such function outside any instantiationcauses compiler abnormal termination.Other compilers (gcc, icc) follow viewpoint that the body of the function definedin friend declaration becomes available when corresponding class is instantiated.This patch implements this viewpoint in clang.Definitions introduced by friend declarations in template classes are not addedto the redeclaration chain of corresponding function. Only when the template isinstantiated, instantiation of the function definition is placed to the chain.The fix was made in collaboration with Richard Smith.This change fixes PR8035, PR17923, PR22307 and PR25848.Differential Revision: http://reviews.llvm.org/D16989llvm-svn: 283207

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/PR25848.cpp</description>
        <pubDate>Tue, 04 Oct 2016 10:11:43 +0000</pubDate>
        <dc:creator>Serge Pavlov &lt;sepavloff@gmail.com&gt;</dc:creator>
    </item>
</channel>
</rss>
