public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100643] New: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809
@ 2021-05-17 19:21 gscfq@t-online.de
  2021-05-18  6:21 ` [Bug target/100643] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-05-17 19:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100643
           Summary: [11/12 Regression] ICE in
                    ix86_mangle_function_version_assembler_name, at
                    config/i386/i386-features.c:2809
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210314 and 20210328 :


$ cat z1.cc
int foo()
{
  int foo() __attribute__((target("avx")));
  int foo() __attribute__((target("default")));
}


$ g++-12-20210516 -c z1.cc
z1.cc: In function 'int foo()':
z1.cc:3:10: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
    3 |   int foo() __attribute__((target("avx")));
      |          ^~
z1.cc:3:10: note: remove parentheses to default-initialize a variable
    3 |   int foo() __attribute__((target("avx")));
      |          ^~
      |          --
z1.cc:3:10: note: or replace parentheses with braces to value-initialize a
variable
z1.cc:4:10: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
    4 |   int foo() __attribute__((target("default")));
      |          ^~
z1.cc:4:10: note: remove parentheses to default-initialize a variable
    4 |   int foo() __attribute__((target("default")));
      |          ^~
      |          --
z1.cc:4:10: note: or replace parentheses with braces to value-initialize a
variable
z1.cc:5:1: warning: no return statement in function returning non-void
[-Wreturn-type]
    5 | }
      | ^
z1.cc: At global scope:
z1.cc:5:1: internal compiler error: in
ix86_mangle_function_version_assembler_name, at
config/i386/i386-features.c:2809
0x107d5bb ix86_mangle_function_version_assembler_name
        ../../gcc/config/i386/i386-features.c:2809
0x107d5bb ix86_mangle_decl_assembler_name(tree_node*, tree_node*)
        ../../gcc/config/i386/i386-features.c:2839
0x719887 get_mangled_id
        ../../gcc/cp/mangle.c:4041
0x719887 mangle_decl(tree_node*)
        ../../gcc/cp/mangle.c:4078
0xf57cc2 decl_assembler_name(tree_node*)
        ../../gcc/tree.c:708
0xf9a8be notice_global_symbol(tree_node*)
        ../../gcc/varasm.c:1801
0x91d505 cgraph_node::finalize_function(tree_node*, bool)
        ../../gcc/cgraphunit.c:453
0x7ed17f expand_or_defer_fn(tree_node*)
        ../../gcc/cp/semantics.c:4682
0x7a1c59 cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:30121
0x7a2afc cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:30024
0x7a2afc cp_parser_init_declarator
        ../../gcc/cp/parser.c:21677
0x782f5a cp_parser_simple_declaration
        ../../gcc/cp/parser.c:14464
0x7a7395 cp_parser_declaration
        ../../gcc/cp/parser.c:14161
0x7a68cb cp_parser_translation_unit
        ../../gcc/cp/parser.c:4942
0x7a68cb c_parse_file()
        ../../gcc/cp/parser.c:45393
0x8753f2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1218

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

end of thread, other threads:[~2024-03-11  5:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 19:21 [Bug c++/100643] New: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 gscfq@t-online.de
2021-05-18  6:21 ` [Bug target/100643] " rguenth at gcc dot gnu.org
2021-05-18  8:09 ` [Bug target/100643] [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 since r11-7693-g1c7bec8bfbc5457c marxin at gcc dot gnu.org
2021-06-01 13:53 ` marxin at gcc dot gnu.org
2021-07-28  7:07 ` rguenth at gcc dot gnu.org
2021-08-13 10:15 ` marxin at gcc dot gnu.org
2021-11-05 14:42 ` marxin at gcc dot gnu.org
2022-01-17 14:46 ` rguenth at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2023-05-29 10:05 ` [Bug target/100643] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-11  5:17 ` 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).