public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102594] New: ICE in decay_conversion, at cp/typeck.c:2311
@ 2021-10-04 18:40 gscfq@t-online.de
  2021-10-11  8:15 ` [Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d marxin at gcc dot gnu.org
  2021-10-17 20:10 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2021-10-04 18:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102594
           Summary: ICE in decay_conversion, at cp/typeck.c:2311
           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: ---

Started with r8 :


$ cat z1.cc
struct s {
  s() {}
};
s a[1][1];
auto [b](a);


$ g++-12-20211003 -c z1.cc
z1.cc:5:11: internal compiler error: Segmentation fault
    5 | auto [b](a);
      |           ^
0xe17d4f crash_signal
        ../../gcc/toplev.c:331
0x92719a decay_conversion(tree_node*, int, bool)
        ../../gcc/cp/typeck.c:2311
0x80f80a build_vec_init(tree_node*, tree_node*, tree_node*, bool, int, int)
        ../../gcc/cp/init.c:4297
0x81012f build_vec_init(tree_node*, tree_node*, tree_node*, bool, int, int)
        ../../gcc/cp/init.c:4528
0x81062b build_aggr_init(tree_node*, tree_node*, int, int)
        ../../gcc/cp/init.c:1823
0x7ee8ed build_aggr_init_full_exprs
        ../../gcc/cp/decl.c:7048
0x7ee8ed check_initializer
        ../../gcc/cp/decl.c:7209
0x7efbb1 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/cp/decl.c:8211
0x88ecbc cp_parser_decomposition_declaration
        ../../gcc/cp/parser.c:15427
0x88ecbc cp_parser_simple_declaration
        ../../gcc/cp/parser.c:15066
0x8b642f cp_parser_declaration
        ../../gcc/cp/parser.c:14828
0x8b6ebb cp_parser_translation_unit
        ../../gcc/cp/parser.c:4987
0x8b6ebb c_parse_file()
        ../../gcc/cp/parser.c:47774
0x988802 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1237

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

* [Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d
  2021-10-04 18:40 [Bug c++/102594] New: ICE in decay_conversion, at cp/typeck.c:2311 gscfq@t-online.de
@ 2021-10-11  8:15 ` marxin at gcc dot gnu.org
  2021-10-17 20:10 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-11  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Summary|ICE in decay_conversion, at |ICE in decay_conversion, at
                   |cp/typeck.c:2311            |cp/typeck.c:2311 since
                   |                            |r8-7514-ge278212eeea4f57d
   Last reconfirmed|                            |2021-10-11
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |paolo.carlini at oracle dot com

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r8-7514-ge278212eeea4f57d.

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

* [Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d
  2021-10-04 18:40 [Bug c++/102594] New: ICE in decay_conversion, at cp/typeck.c:2311 gscfq@t-online.de
  2021-10-11  8:15 ` [Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d marxin at gcc dot gnu.org
@ 2021-10-17 20:10 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-17 20:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Clang, MSVC and ICC all accept this code.

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

end of thread, other threads:[~2021-10-17 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 18:40 [Bug c++/102594] New: ICE in decay_conversion, at cp/typeck.c:2311 gscfq@t-online.de
2021-10-11  8:15 ` [Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d marxin at gcc dot gnu.org
2021-10-17 20:10 ` 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).