// Verify the fix for issue 172. namespace test87 { template class Test { friend class B; ///< B needs to access the data directly. T m_val; }; template class B { T m_val1; Test m_val2; }; }