[cfe-dev] Pushable #pragma diagnostics
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 ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev