public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97991] New: ICE in c_parser_consume_token, at c/c-parser.c:850
@ 2020-11-25 17:02 gscfq@t-online.de
  2020-11-25 17:03 ` [Bug c/97991] " gscfq@t-online.de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-11-25 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97991
           Summary: ICE in c_parser_consume_token, at c/c-parser.c:850
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :


$ cat z1.c
#define foo _Pragma ("pack(bar)")
#pragma redefine_extname foo


$ gcc-11-20201122 -c z1.c
z1.c:2:9: internal compiler error: in c_parser_consume_token, at
c/c-parser.c:850
    2 | #pragma redefine_extname foo
      |         ^~~~~~~~~~~~~~~~
0x666747 c_parser_consume_token(c_parser*)
        ../../gcc/c/c-parser.c:850
0x6687ea pragma_lex(tree_node**, unsigned int*)
        ../../gcc/c/c-parser.c:12555
0x6e4313 handle_pragma_redefine_extname
        ../../gcc/c-family/c-pragma.c:499
0x66e6bf c_parser_pragma
        ../../gcc/c/c-parser.c:12524
0x6909f3 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1758
0x691569 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x691569 c_parse_file()
        ../../gcc/c/c-parser.c:21882
0x6e0772 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1198

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-07 10:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 17:02 [Bug c/97991] New: ICE in c_parser_consume_token, at c/c-parser.c:850 gscfq@t-online.de
2020-11-25 17:03 ` [Bug c/97991] " gscfq@t-online.de
2020-11-26 10:02 ` marxin at gcc dot gnu.org
2021-09-20 22:15 ` [Bug c/97991] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-21 13:24 ` rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c/97991] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:42 ` jakub at gcc dot gnu.org
2023-07-07 10:38 ` [Bug c/97991] [11/12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).