[cfe-dev] problem report

John McCall via cfe-dev cfe-dev at lists.llvm.org
Sat Sep 16 21:11:43 PDT 2017


> On Sep 17, 2017, at 12:01 AM, Kim Gadecki <Gadecki at iinet.net.au> wrote:
> 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.
> 
> 
> On 17/09/2017 11:14 AM, John McCall wrote:
>>> On Sep 16, 2017, at 10:47 PM, Kim Gadecki via cfe-dev <cfe-dev at lists.llvm.org <mailto: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/20170917/91cf48db/attachment.html>


More information about the cfe-dev mailing list