[LLVMbugs] [Bug 17324] New: [PATCH] Friend function re-definition regression
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Sep 22 14:38:46 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17324
Bug ID: 17324
Summary: [PATCH] Friend function re-definition regression
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: alp at nuanti.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
r177003 reused the "late template parsed" logic for ordinary friend function
definitions but omitted out the corresponding check for function redefinition
that exists in the template code path.
The result is that after said commit, the following is either mis-diagnosed or
not diagnosed at all:
<pre>
namespace test16c {
extern "C" {
void bar2() {} // expected-note {{previous definition is here}}
class Foo2 {
friend void bar2() {} // expected-error {{redefinition of 'bar'}}
};
}
}
</pre>
Test case and fix will be attached to this issue shortly.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130922/66defb77/attachment.html>
More information about the llvm-bugs
mailing list