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

            Bug ID: 89971
           Summary: [8/9 Regression] ICE: unspellable token PADDING
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started with gcc-8 (before 20180525) :


$ cat z1.c
#define a(...) int b /##__VA_OPT__(c);
a()


$ gcc-9-20190331 -c z1.c
z1.c:2:1: internal compiler error: unspellable token PADDING
    2 | a()
      | ^
0x6543ea c_cpp_diagnostic(cpp_reader*, cpp_diagnostic_level,
cpp_warning_reason, rich_location*, char const*, __va_list_tag (*) [1])
        ../../gcc/c-family/c-common.c:6319
0x1291f42 cpp_diagnostic
        ../../libcpp/errors.c:75
0x12920c6 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...)
        ../../libcpp/errors.c:89
0x129b0bd cpp_spell_token(cpp_reader*, cpp_token const*, unsigned char*, bool)
        ../../libcpp/lex.c:3298
0x129ca87 cpp_token_as_text(cpp_reader*, cpp_token const*)
        ../../libcpp/lex.c:3314
0x12a210a paste_tokens
        ../../libcpp/macro.c:821
0x12a5590 paste_all_tokens
        ../../libcpp/macro.c:898
0x12a5590 cpp_get_token_1
        ../../libcpp/macro.c:2712
0x664bed c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../../gcc/c-family/c-lex.c:405
0x5fcc60 c_lex_one_token
        ../../gcc/c/c-parser.c:249
0x6094f4 c_parser_peek_token(c_parser*)
        ../../gcc/c/c-parser.c:436
0x6094f4 c_parser_next_token_is
        ../../gcc/c/c-parser.h:167
0x6094f4 c_parser_direct_declarator_inner
        ../../gcc/c/c-parser.c:3790
0x61d8d1 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:1999
0x623a53 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1653
0x624519 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1534
0x624519 c_parse_file()
        ../../gcc/c/c-parser.c:19854
0x66ba20 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1156

Reply via email to