<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - core DR 580 - template parameters and base-specifiers access checked too eagerly"
href="http://llvm.org/bugs/show_bug.cgi?id=15209">15209</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>core DR 580 - template parameters and base-specifiers access checked too eagerly
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zilla@kayari.org
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>class A {
typedef int I; // private member
template<int> struct Q;
template<int> friend struct R;
protected:
struct B { };
};
template<A::I> struct A::Q { };
template<A::I> struct R { };
struct D: A::B, A { };
t.cc:9:13: error: 'I' is a private member of 'A'
template<A::I> struct R { };
^
t.cc:2:15: note: implicitly declared private here
typedef int I; // private member
^
t.cc:10:14: error: 'B' is a protected member of 'A'
struct D: A::B, A { };
^
t.cc:6:10: note: declared protected here
struct B { };
^
The member, A::Q, is handled correctly, but the friend R and derived type D
should also be able to refer to non-public names from A.
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#580">http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#580</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>