http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60368
Bug ID: 60368 Summary: ICE on not unibyte character in execution character set Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: rmansfield at qnx dot com $ cat ~/ice.c #include <stdio.h> int main(int argc, char *argv[]) { printf("hello world\n"); } $ ./xgcc -v Using built-in specs. COLLECT_GCC=./xgcc Target: x86_64-unknown-linux-gnu Configured with: ../configure --enable-languages=c++,lto Thread model: posix gcc version 4.9.0 20140228 (experimental) [trunk revision 208224] (GCC) $ ./xgcc -B. -fexec-charset=UTF-16 ~/ice.c /home/ryan/ice.c: In function ‘main’: /home/ryan/ice.c:9:0: internal compiler error: character 0xa is not unibyte in execution character set ^ 0x5d0b64 c_cpp_error(cpp_reader*, int, int, unsigned int, unsigned int, char const*, __va_list_tag (*) [1]) ../../gcc/c-family/c-common.c:9713 0xf16cea cpp_diagnostic ../../libcpp/errors.c:63 0xf16e36 cpp_error(cpp_reader*, int, char const*, ...) ../../libcpp/errors.c:78 0xf0e15a cpp_host_to_exec_charset(cpp_reader*, unsigned int) ../../libcpp/charset.c:804 0x5d0c63 c_common_to_target_charset(long) ../../gcc/c-family/c-common.c:9731 0x618a8e init_target_chars ../../gcc/builtins.c:13529 0x63367c init_target_chars ../../gcc/builtins.c:13527 0x63367c fold_builtin_printf ../../gcc/builtins.c:13315 0x637a79 fold_builtin_1 ../../gcc/builtins.c:10705 0x62d9a3 fold_builtin_n ../../gcc/builtins.c:11102 0x63b895 fold_call_expr(unsigned int, tree_node*, bool) ../../gcc/builtins.c:11233 0x7f8009 gimplify_call_expr ../../gcc/gimplify.c:2286 0x7ed947 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:7419 0x7f2296 gimplify_stmt(tree_node**, gimple_statement_base**) ../../gcc/gimplify.c:5341 0x7f2f9f gimplify_bind_expr ../../gcc/gimplify.c:1079 0x7ede8e gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:7645 0x7f2296 gimplify_stmt(tree_node**, gimple_statement_base**) ../../gcc/gimplify.c:5341 0x7f3b09 gimplify_body(tree_node*, bool) ../../gcc/gimplify.c:8555 0x7f40e6 gimplify_function_tree(tree_node*) ../../gcc/gimplify.c:8708 0x6827b7 analyze_function ../../gcc/cgraphunit.c:649 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.