This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/69869] internal compiler error: Segmentation fault in call to skip_macro_block_comment when using '-traditional-cpp'
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Jun 2016 12:44:47 +0000
- Subject: [Bug preprocessor/69869] internal compiler error: Segmentation fault in call to skip_macro_block_comment when using '-traditional-cpp'
- Auto-submitted: auto-generated
- References: <bug-69869-4 at http dot gcc dot gnu dot org/bugzilla/>
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.