https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99446

Stephan Bergmann <sbergman at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbergman at redhat dot com

--- Comment #2 from Stephan Bergmann <sbergman at redhat dot com> ---
At least with recent GCC master (bc2127767a0076afdbc9075fda29f97f82ef7ec6), I
can consistently reproduce the following:

> $ cat dir1/file2
> #pragma GCC diagnostic push
> #include_next <file2>
> #pragma GCC diagnostic pop

> $ cat dir2/file1
> #include <file2>

> $ cat dir2/file2

> $ 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
> 0x1ca855b linemap_position_for_loc_and_offset(line_maps*, unsigned int, 
> unsigned int)
>         ../../src/libcpp/line-map.c:1005
> 0xa94ef3 cp_lexer_new_main
>         ../../src/gcc/cp/parser.c:676
> 0xa94ef3 c_parse_file()
>         ../../src/gcc/cp/parser.c:45237
> 0xbb8ead c_common_parse_file()
>         ../../src/gcc/c-family/c-opts.c:1218
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to