Skip to content
Commit 3fd47df3 authored by Francois Pichet's avatar Francois Pichet
Browse files

For compatibility with MSVC, a friend declaration also act as a forward...

For compatibility with MSVC, a friend declaration also act as a forward declaration if the tag name is not already declared. The tag name is declared in the next outermost non record scope.
Example:

class A {
  friend class B;
  B* b;
};
B* global_b;

llvm-svn: 132332
parent 67c4d0f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment