C1136: Class <Ident> is not a correct nested class of class <Ident>

[ERROR]

Description

Error detected while parsing the scope resolution of a nested class.

Example
  class A{

  
    class B;

  
  }

  
  class A::C{};

  
Tips

Check that the scope resolution matches the nested class.

  class A{

  
    class B;

  
  }

  
  class A::B{};