Re: [C++ Patch] PR 38980

2011-10-09 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 38980

2011-10-07 Thread Paolo Carlini
Hi, Instead of adding the parameter, let's have the C++ front end call a different function that doesn't try to pull out the value from aggregate variables, like C has decl_constant_value_for_optimization. Ok. The below lives entirely inside the C++ front-end (actually I had already experimente

Re: [C++ Patch] PR 38980

2011-10-07 Thread Jason Merrill
Instead of adding the parameter, let's have the C++ front end call a different function that doesn't try to pull out the value from aggregate variables, like C has decl_constant_value_for_optimization. Jason

[C++ Patch] PR 38980

2011-10-05 Thread Paolo Carlini
Hi, as analyzed by Jakub in the audit trail, after changes made by Mark back in 2005, constant_value_1 doesn't return aggregate constants for fear of inadvertent copies (in general their addresses must be the same everywhere). However, for the purpose of format checking in check_format_arg it