Re: [PATCH 1/2] Add a STATIC_ASSERT on sizeof (struct cp_token)

2016-07-27 Thread Andreas Schwab
On Mi, Jul 27 2016, David Malcolm wrote: > +/* The C++ frontend lexes everything first, and keeps the tokens > + in memory, so there are possibly millions of tokens in memory. > + > + Use a STATIC_ASSERT to ensure that we don't accidentally grow > + the structure. > + > + To avoid introdu

[PATCH 1/2] Add a STATIC_ASSERT on sizeof (struct cp_token)

2016-07-26 Thread David Malcolm
On Mon, 2016-07-25 at 10:36 +0200, Richard Biener wrote: > On Fri, Jul 22, 2016 at 4:11 PM, Jakub Jelinek > wrote: > > On Fri, Jul 22, 2016 at 10:33:50AM -0400, David Malcolm wrote: > > > gcc/cp/ChangeLog: > > > * parser.h (struct cp_token): Add a STATIC_ASSERT on the > > > size of the