------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-03 19:34 ------- > Is this related to the standard requirement that a source file must end with a > newline character? (and thus cannot be empty?) Not really. Confirmed: ==17881== Invalid read of size 1 ==17881== at 0x87F2933: _cpp_convert_input (charset.c:1631) ==17881== by 0x87FA178: read_file_guts (files.c:555) ==17881== by 0x87FA22E: read_file (files.c:582) ==17881== by 0x87FA361: should_stack_file (files.c:626) ==17881== by 0x87FA58C: _cpp_stack_file (files.c:704) ==17881== by 0x87FCB28: cpp_read_main_file (init.c:483) ==17881== by 0x80D3416: c_common_post_options (c-opts.c:1110) ==17881== by 0x85BDEB6: process_options (toplev.c:1568) ==17881== by 0x85BE818: do_compile (toplev.c:1994) ==17881== by 0x85BE8B1: toplev_main (toplev.c:2042) ==17881== by 0x8100F79: main (main.c:35) ==17881== Address 0x404C62F is 1 bytes before a block of size 1 alloc'd ==17881== at 0x40052ED: realloc (vg_replace_malloc.c:306) ==17881== by 0x8822F3F: xrealloc (xmalloc.c:179) ==17881== by 0x87F2923: _cpp_convert_input (charset.c:1625) ==17881== by 0x87FA178: read_file_guts (files.c:555) ==17881== by 0x87FA22E: read_file (files.c:582) ==17881== by 0x87FA361: should_stack_file (files.c:626) ==17881== by 0x87FA58C: _cpp_stack_file (files.c:704) ==17881== by 0x87FCB28: cpp_read_main_file (init.c:483) ==17881== by 0x80D3416: c_common_post_options (c-opts.c:1110) ==17881== by 0x85BDEB6: process_options (toplev.c:1568) ==17881== by 0x85BE818: do_compile (toplev.c:1994) ==17881== by 0x85BE8B1: toplev_main (toplev.c:2042)
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-12-03 19:34:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30001