public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96546] New: [10/11] internal compiler error: in default_conversion
@ 2020-08-10  3:17 anbu1024.me at gmail dot com
  2020-08-10  4:02 ` [Bug c/96546] ICE " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: anbu1024.me at gmail dot com @ 2020-08-10  3:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96546
           Summary: [10/11] internal compiler error: in default_conversion
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anbu1024.me at gmail dot com
  Target Milestone: ---

$ cat test.c 

void foo () {} 

__attribute__ ( ( constructor ( foo ) ) ) void bar () { return 0 ; }

-------------------------------------------------------------------------------

$ gcc-snapshot11 --version
gcc (GCC) 11.0.0 20200802 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-------------------------------------------------------------------------------

$ gcc-snapshot11 test.c 
test.c:4:1: internal compiler error: in default_conversion, at
c/c-typeck.c:2185
    4 | __attribute__ ( ( constructor ( foo ) ) ) void bar () { return 0 ; }
      | ^~~~~~~~~~~~~
0x5fcc39 default_conversion(tree_node*)
        ../../gcc-11-20200802/gcc/c/c-typeck.c:2185
0x8d7896 get_priority
        ../../gcc-11-20200802/gcc/c-family/c-attribs.c:1571
0x8d7ace handle_constructor_attribute
        ../../gcc-11-20200802/gcc/c-family/c-attribs.c:1622
0x7e61e7 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ../../gcc-11-20200802/gcc/attribs.c:714
0x802a35 start_function(c_declspecs*, c_declarator*, tree_node*)
        ../../gcc-11-20200802/gcc/c/c-decl.c:9184
0x85d226 c_parser_declaration_or_fndef
        ../../gcc-11-20200802/gcc/c/c-parser.c:2434
0x866893 c_parser_external_declaration
        ../../gcc-11-20200802/gcc/c/c-parser.c:1773
0x867389 c_parser_translation_unit
        ../../gcc-11-20200802/gcc/c/c-parser.c:1646
0x867389 c_parse_file()
        ../../gcc-11-20200802/gcc/c/c-parser.c:21812
0x8c020d c_common_parse_file()
        ../../gcc-11-20200802/gcc/c-family/c-opts.c:1188
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

-------------------------------------------------------------------------------

$ gcc-snapshot10 --version
gcc (GCC) 10.2.1 20200725
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-------------------------------------------------------------------------------

$ gcc-snapshot10 test.c 
test.c:4:1: internal compiler error: in default_conversion, at
c/c-typeck.c:2182
    4 | __attribute__ ( ( constructor ( foo ) ) ) void bar () { return 0 ; }
      | ^~~~~~~~~~~~~
0x59e720 default_conversion(tree_node*)
        ../../gcc-10-20200725/gcc/c/c-typeck.c:2182
0x6a61ac get_priority
        ../../gcc-10-20200725/gcc/c-family/c-attribs.c:1571
0x6a7d1f handle_constructor_attribute
        ../../gcc-10-20200725/gcc/c-family/c-attribs.c:1622
0x5e26e5 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ../../gcc-10-20200725/gcc/attribs.c:714
0x5f94e0 start_function(c_declspecs*, c_declarator*, tree_node*)
        ../../gcc-10-20200725/gcc/c/c-decl.c:9153
0x641be2 c_parser_declaration_or_fndef
        ../../gcc-10-20200725/gcc/c/c-parser.c:2406
0x649723 c_parser_external_declaration
        ../../gcc-10-20200725/gcc/c/c-parser.c:1745
0x64a221 c_parser_translation_unit
        ../../gcc-10-20200725/gcc/c/c-parser.c:1618
0x64a221 c_parse_file()
        ../../gcc-10-20200725/gcc/c/c-parser.c:21745
0x69440b c_common_parse_file()
        ../../gcc-10-20200725/gcc/c-family/c-opts.c:1190
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10  3:17 [Bug c/96546] New: [10/11] internal compiler error: in default_conversion anbu1024.me at gmail dot com
2020-08-10  4:02 ` [Bug c/96546] ICE " marxin at gcc dot gnu.org
2021-09-20  3:02 ` [Bug c/96546] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-21 13:27 ` rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c/96546] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-07-07  6:09 ` [Bug c/96546] [10/11/12/13/14 " pinskia 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).