[cfe-dev] Pushable #pragma diagnostics

Louis Gerbarg lgerbarg at gmail.com
Sun Jul 5 15:42:53 PDT 2009


On Sun, Jul 5, 2009 at 6:26 PM, Eli Friedman <eli.friedman at gmail.com> wrote:

>
> This makes Diags a pointer past the last element of the vector; not a
> good idea, even if it does happen to work most of the time.


Yeah, that is a whoops on my part. Originally I had a std::vector<Diagnostic
*> and I was newing and deleting things as a passed them around. Apparently
I made a bit of an embarrassing mistake when I changed that ;-)

Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090705/e05d8de4/attachment.html>


More information about the cfe-dev mailing list