<div>I have the following:</div>
<div> </div>
<div>template <class TYPE> class test;<br>typedef test<int> testClass;<br>typedef testClass& refTestClass;</div>
<div>template <typename TYPE> class test<br>{<br>public:<br> test(refTestClass other);<br>private:<br> int member;<br>};</div>
<div>template <typename TYPE><br>inline test<TYPE>::test(refTestClass other) {<br> member = other.member;<br>}<br></div>
<div>C:\Sony\Clang\exp>clang -cc1 priv.cpp<br>priv.cpp:15:17: error: 'member' is a private member of 'test<int>'<br> member = other.member;<br> ^<br>priv.cpp:10:6: note: declared private here<br>
int member;</div>
<div> </div>
<div>Is this a bug or legitimate behavior?</div>
<div> </div>
<div>Sorry to bug you with these. Basically I'm running Clang over a very large program written by someone else and compiled with gcc. Is this the appropriate place for this, or should I just file bugs and let someone else respond as needed?</div>
<div> </div>
<div>-John</div>
<div><br clear="all"><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div>