Re: [PATCH] Fix valgrind reported issue during char constant lexing (PR c++/69628)

2016-02-05 Thread Bernd Schmidt
On 02/03/2016 09:05 PM, Jakub Jelinek wrote: 2016-02-03 Jakub Jelinek PR c++/69628 * charset.c (cpp_interpret_charconst): Clear *PCHARS_SEEN and *UNSIGNEDP if bailing out early due to errors. * g++.dg/parse/pr69628.C: New test. Ok. Bernd

[PATCH] Fix valgrind reported issue during char constant lexing (PR c++/69628)

2016-02-03 Thread Jakub Jelinek
Hi! If we report error from cpp_interpret_charconst (or functions it calls), we leave *pchars_seen and *unsignedp uninitialized, and as the return value for error (0) is also valid return value for valid programs, various callers look at the uninitialized variables. Fixed thusly, bootstrapped/reg