Hi. I'm sending series of 3 patches where first part is a refactoring in order to use get_location_from_adhoc_loc and get_data_from_adhoc_loc. Second part is dealing with the ICE and is about using of get_location_from_adhoc_loc for IS_ADHOC_LOC. Last one is reappliation of Paolo's patch.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready for trunk? Thanks, Martin marxin (2): Do a refactoring in linemap (PR preprocessor/90382). Fix min_location usage in line-map.c (PR preprocessor/90382). paolo (1): /cp 2018-05-14 Paolo Carlini <paolo.carl...@oracle.com> gcc/cp/decl.c | 4 +- gcc/testsuite/g++.dg/diagnostic/trailing1.C | 5 ++ libcpp/include/line-map.h | 4 +- libcpp/line-map.c | 57 ++++++++++----------- 4 files changed, 36 insertions(+), 34 deletions(-) create mode 100644 gcc/testsuite/g++.dg/diagnostic/trailing1.C -- 2.21.0