[cfe-dev] Diagnostic.h : Diagnostic::Report line 836

Douglas Gregor dgregor at apple.com
Tue Nov 2 08:21:22 PDT 2010


On Nov 1, 2010, at 10:24 PM, Michael Mullin wrote:

> Hello
> 
> I believe I have found a bug in Diagnostic.h
> 00836 inline DiagnosticBuilder Diagnostic::Report(FullSourceLoc Loc, unsigned DiagID){
> 
> 00837   assert(CurDiagID == ~0U && "Multiple diagnostics in flight at once!");
> 00838   CurDiagLoc = Loc;
> 00839   CurDiagID = DiagID;
> 
> 00840   return DiagnosticBuilder(this);
> 
> 00841 }
> 
> 840 will cause a segmentation fault if the return value is used by the calling function.

It seems to be working fairly well... why do you think there's an issue here?

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101102/42f77a63/attachment.html>


More information about the cfe-dev mailing list