[Bug preprocessor/69869] internal compiler error: Segmentation fault in call to skip_macro_block_comment when using '-traditional-cpp'

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 29 12:45:00 GMT 2016


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jsm28 at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Weird, I can reproduce it just fine with current trunk or e.g. 3.4 and up.
One problem is that skip_macro_block_comment assumes that the comment must be
terminated, while we have there only "/*\n" in the buffer and nothing else, so
we run off the end of the buffer.
But, I'm not really sure even what this should be preprocessed into.


More information about the Gcc-bugs mailing list