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

            Bug ID: 86903
           Summary: ICE in init_target_to_host_charmap
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

$ cat w.cc
int main()
{
  __builtin_printf("%ld\n", 0);
  return 0;
}
$ gcc -S -fexec-charset=DE w.cc
w.cc: In function 'int main()':
w.cc:1:5: internal compiler error: converting to execution character set:
Invalid or incomplete multibyte or wide character
 int main()
     ^~~~
0xa6ced9 c_cpp_error(cpp_reader*, int, int, rich_location*, char const*,
__va_list_tag (*) [1])
        ../../gcc-trunk/gcc/c-family/c-common.c:6141
0x17d74c0 cpp_diagnostic
        ../../gcc-trunk/libcpp/errors.c:74
0x17d7646 cpp_error(cpp_reader*, int, char const*, ...)
        ../../gcc-trunk/libcpp/errors.c:87
0x17d0033 cpp_host_to_exec_charset(cpp_reader*, unsigned int)
        ../../gcc-trunk/libcpp/charset.c:798
0xa6cff3 c_common_to_target_charset(long)
        ../../gcc-trunk/gcc/c-family/c-common.c:6159
0x169d2a1 init_target_to_host_charmap
        ../../gcc-trunk/gcc/gimple-ssa-sprintf.c:334
0x169d2a1 execute
        ../../gcc-trunk/gcc/gimple-ssa-sprintf.c:4086
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