https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99446
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 50529 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50529&action=edit testcase testcase for convenience. > tar xf testcase.tar > g++ -Idir1 -Idir2 -fsyntax-only test.cc test.cc:2: internal compiler error: in linemap_position_for_loc_and_offset, at libcpp/line-map.c:1005 0x1cd2ebb linemap_position_for_loc_and_offset(line_maps*, unsigned int, unsigned int) /home/rguenther/src/trunk/libcpp/line-map.c:1005 0xaa4533 cp_lexer_new_main /home/rguenther/src/trunk/gcc/cp/parser.c:678 0xaa4533 c_parse_file() /home/rguenther/src/trunk/gcc/cp/parser.c:45264