On 12/03/2011 01:18 PM, Dodji Seketeli wrote:
What I am proposing in the patch below is to wait until the closing '}' of a given scope, walk the statements of that scope, and fixup the locations of CLEANUP_STMTs by setting them the current location, i.e, the location of the closing '}'.
I think it might be simpler to have cxx_maybe_build_cleanup avoid setting EXPR_LOCATION on the call in the first place.
Jason