<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Sep 16, 2017, at 10:47 PM, Kim Gadecki via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><div class=""><div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hi guys,</p><p class="">I noticed a problem in the clang source code.</p><p class="">In ASTConsumers.cpp, someone edited it to say the following at
      line 502<br class="">
    </p><p class="">    case Decl::Friend: {<br class="">
            Out << "<friend>";<br class="">
            if (const NamedDecl *ND =
      cast<FriendDecl>(I)->getFriendDecl())<br class="">
              Out << ' ' << *ND;<br class="">
            Out << "\n";<br class="">
            break;<br class="">
          }</p><p class="">It causes a <b class="">fatal </b>error. <br class="">
    </p><p class="">commit 870fa3969cf0e9e914b21be0b8351f4b8b907eae</p></div></div></blockquote></div>Do you have a test case?  That code doesn't seem wrong to me.<div class=""><br class=""></div><div class="">John.</div></body></html>