This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]