https://llvm.org/bugs/show_bug.cgi?id=30247
Bug ID: 30247
Summary: Clang prohibits friendship based on typedefs
Product: clang
Version: 3.8
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
This:
template <class class_element_allocator_type, bool is_const> class
class_iterator;
typedef class_iterator<element_allocator_type, false> iterator;
typedef class_iterator<element_allocator_type, true> const_iterator;
friend class class_iterator<element_allocator_type, false>;
friend class class_iterator<element_allocator_type, true>;
works.
This:
template <class class_element_allocator_type, bool is_const> class
class_iterator;
typedef class_iterator<element_allocator_type, false> iterator;
typedef class_iterator<element_allocator_type, true> const_iterator;
friend class iterator;
friend class const_iterator;
Does not.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs