On Thu, 22 Jan 2015, Marek Polacek wrote: > As discussed in the PR, this patch partially reverts Tom's change > in r136209. (The is_if argument to _cpp_parse_expr is kept for the > sake of diagnostics.) > > The change made sense at that time, but now we have DR#412 resolved. > This DR deals with the case where we have an #elif conditional that > doesn't have to be evaluated: > > #if 1 > int i; > #elif 1/0 > #endif > > and this DR says that such #elifs should be skipped. > This change is deliberately not conditioned on any standard version. > > Jason, Joseph, does it make sense to put this into GCC 5, or should it wait > for GCC 6? Since this change makes the preprocessor more permissive, it > should hurt nobody. > > Bootstrapped/regtested on x86_64-linux, ok for trunk?
OK for GCC 5. -- Joseph S. Myers jos...@codesourcery.com