[cfe-dev] problem report

John McCall via cfe-dev cfe-dev at lists.llvm.org
Sat Sep 16 20:14:51 PDT 2017


> On Sep 16, 2017, at 10:47 PM, Kim Gadecki via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> Hi guys,
> 
> I noticed a problem in the clang source code.
> 
> In ASTConsumers.cpp, someone edited it to say the following at line 502
>     case Decl::Friend: {
>       Out << "<friend>";
>       if (const NamedDecl *ND = cast<FriendDecl>(I)->getFriendDecl())
>         Out << ' ' << *ND;
>       Out << "\n";
>       break;
>     }
> 
> It causes a fatal error. 
> commit 870fa3969cf0e9e914b21be0b8351f4b8b907eae
> 
Do you have a test case?  That code doesn't seem wrong to me.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170916/27df7b65/attachment.html>


More information about the cfe-dev mailing list