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

* [Bug c/97991] ICE in c_parser_consume_token, at c/c-parser.c:850
  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 ` gscfq@t-online.de
  2020-11-26 10:02 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-11-25 17:03 UTC (permalink / raw)
  To: gcc-bugs

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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-pc-linux-gnu
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

A special case, loosely related :


$ cat z2.c
#define foo _Pragma (" ")
#pragma redefine_extname foo


$ gcc-11-20201122 -c z2.c -Wall
z2.c:2:2: internal compiler error: unspellable token PRAGMA_EOL
    2 | #pragma redefine_extname foo
      |  ^
0x6c46ba 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:6414
0x1522c92 cpp_diagnostic
        ../../libcpp/errors.c:75
0x1522e16 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...)
        ../../libcpp/errors.c:89
0x152c22d cpp_spell_token(cpp_reader*, cpp_token const*, unsigned char*, bool)
        ../../libcpp/lex.c:3541
0x152dac7 cpp_token_as_text(cpp_reader*, cpp_token const*)
        ../../libcpp/lex.c:3557
0x6d6022 cb_def_pragma
        ../../gcc/c-family/c-lex.c:255
0x151f880 do_pragma
        ../../libcpp/directives.c:1539
0x15224fd destringize_and_run
        ../../libcpp/directives.c:1885
0x15226cc _cpp_do__Pragma
        ../../libcpp/directives.c:1963
0x1536eb6 builtin_macro
        ../../libcpp/macro.c:744
0x15344b2 enter_macro_context
        ../../libcpp/macro.c:1562
0x153624d cpp_get_token_1
        ../../libcpp/macro.c:2925
0x6d757d c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../../gcc/c-family/c-lex.c:470
0x664e4f c_lex_one_token
        ../../gcc/c/c-parser.c:279
0x668809 c_parser_peek_token(c_parser*)
        ../../gcc/c/c-parser.c:483
0x668809 pragma_lex(tree_node**, unsigned int*)
        ../../gcc/c/c-parser.c:12540
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

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

* [Bug c/97991] ICE in c_parser_consume_token, at c/c-parser.c:850
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 10:02 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-11-26

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Also GCC 4.8.0 fails.

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

* [Bug c/97991] [9/10/11/12 Regression] ICE in c_parser_consume_token,  at c/c-parser.c:850
  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 ` pinskia at gcc dot gnu.org
  2022-01-21 13:24 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-20 22:15 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=47254
            Summary|ICE in                      |[9/10/11/12 Regression] ICE
                   |c_parser_consume_token, at  |in c_parser_consume_token,
                   |c/c-parser.c:850            |at c/c-parser.c:850
      Known to fail|                            |10.1.0, 4.4.7
   Target Milestone|---                         |9.5
      Known to work|                            |4.1.2

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to G. Steinmetz from comment #1)
> A special case, loosely related :
> 
> 
> $ cat z2.c
> #define foo _Pragma (" ")
> #pragma redefine_extname foo

That is PR 47254.

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

* [Bug c/97991] [9/10/11/12 Regression] ICE in c_parser_consume_token,  at c/c-parser.c:850
  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
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-21 13:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug c/97991] [10/11/12/13 Regression] ICE in c_parser_consume_token, at c/c-parser.c:850
  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
                   ` (3 preceding siblings ...)
  2022-01-21 13:24 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:43 ` 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
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c/97991] [10/11/12/13 Regression] ICE in c_parser_consume_token, at c/c-parser.c:850
  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
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c/97991] [11/12/13/14 Regression] ICE in c_parser_consume_token, at c/c-parser.c:850
  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
                   ` (5 preceding siblings ...)
  2022-06-28 10:42 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:38 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

^ 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).