Bug 105987 - ICE: unspellable token PRAGMA_EOL
Summary: ICE: unspellable token PRAGMA_EOL
Status: RESOLVED DUPLICATE of bug 79516
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2022-06-15 08:27 UTC by G. Steinmetz
Modified: 2022-06-15 08:33 UTC (History)
0 users

See Also:
Host:
Target: x86_64-pc-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G. Steinmetz 2022-06-15 08:27:43 UTC
Affects versions down to at least r5 :
(test cases c-c++-common/gomp/declare-variant-9.c, -10.c, -11.c)


$ gcc-13-20220612 -c declare-variant-9.c -fopenmp -traditional-cpp
declare-variant-9.c:43: internal compiler error: unspellable token PRAGMA_EOL
   43 | #if defined(__i386__) || defined(__x86_64__)
      |
0x74d9f2 c_cpp_diagnostic(cpp_reader*, cpp_diagnostic_level, cpp_warning_reason, rich_location*, char const*, __va_list_tag (*) [1])
        ../../gcc/c-family/c-common.cc:6673
0x19eb6b7 cpp_diagnostic
        ../../libcpp/errors.cc:82
0x19eb766 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...)
        ../../libcpp/errors.cc:96
0x19f50fd cpp_spell_token(cpp_reader*, cpp_token const*, unsigned char*, bool)
        ../../libcpp/lex.cc:4164
0x19f5df7 cpp_token_as_text(cpp_reader*, cpp_token const*)
        ../../libcpp/lex.cc:4180
0x19efabc _cpp_parse_expr
        ../../libcpp/expr.cc:1375
0x19e8393 do_if
        ../../libcpp/directives.cc:2060
0x19e9ca0 _cpp_handle_directive
        ../../libcpp/directives.cc:557
0x1a0632d _cpp_scan_out_logical_line
        ../../libcpp/traditional.cc:776
0x1a06a90 _cpp_read_logical_line_trad
        ../../libcpp/traditional.cc:321
0x76d287 scan_translation_unit_trad
        ../../gcc/c-family/c-ppoutput.cc:420
0x76d287 preprocess_file(cpp_reader*)
        ../../gcc/c-family/c-ppoutput.cc:97
0x76b748 c_common_init()
        ../../gcc/c-family/c-opts.cc:1214
0x6a6826 lang_dependent_init
        ../../gcc/toplev.cc:1834
0x6a6826 do_compile
        ../../gcc/toplev.cc:2129
Comment 1 Andrew Pinski 2022-06-15 08:33:09 UTC
Dup of bug 79516.

*** This bug has been marked as a duplicate of bug 79516 ***