problem report

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 << “”;
if (const NamedDecl *ND = cast(I)->getFriendDecl())
Out << ’ ’ << *ND;
Out << “\n”;
break;
}

It causes a fatal error.

commit 870fa3969cf0e9e914b21be0b8351f4b8b907eae

Thank you

Do you have a test case? That code doesn’t seem wrong to me.

John.

It causes a fatal error when linking because of the characters ’ ’

I think there should be something in quotes on that line, Out << ’ ’ << *ND;

fatal error LNK1318: Unexpected PDB error; OK (0) ‘’

It causes a fatal error when linking because of the characters ’ ’

I think there should be something in quotes on that line, Out << ’ ’ << *ND;

fatal error LNK1318: Unexpected PDB error; OK (0) ‘’

Googling suggests that this error is a Visual Studio failure that sometimes arises due to stale debugging symbols, and that doing a clean build should fix things up.

What makes you think it’s a source error at all, and why on this line specifically?

John.