[cfe-dev] problem report

Kim Gadecki via cfe-dev cfe-dev at lists.llvm.org
Sat Sep 16 21:01:53 PDT 2017


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) ''



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/d174255c/attachment.html>


More information about the cfe-dev mailing list