public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99643] New: internal compiler error in build_over_call, involving array new and copy elision
@ 2021-03-18 12:39 ensadc at mailnesia dot com
  2021-03-18 13:20 ` [Bug c++/99643] [8/9/10/11 Regression] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ensadc at mailnesia dot com @ 2021-03-18 12:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99643
           Summary: internal compiler error in build_over_call, involving
                    array new and copy elision
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ensadc at mailnesia dot com
  Target Milestone: ---

https://godbolt.org/z/8TWG9d

====
struct Foo {};
Foo get_foo();

int main() {
    new Foo[1]{get_foo()};
}

====
<source>: In function 'int main()':
<source>:5:25: internal compiler error: in build_over_call, at cp/call.c:9360
    5 |     new Foo[1]{get_foo()};
      |                         ^
0x1cfa0d9 internal_error(char const*, ...)
        ???:0
0x6ba797 fancy_abort(char const*, int, char const*)
        ???:0
0x6df07c build_new_method_call(...)
        ???:0
0x6e07e0 build_special_member_call(...)
        ???:0
0x76a7cf ocp_convert(...)
        ???:0
0x7f46a8 build_aggr_init(tree_node*, tree_node*, int, int)
        ???:0
0x7f30c0 build_vec_init(...)
        ???:0
0x7f8051 build_new(...)
        ???:0
0x8e12dd c_parse_file()
        ???:0
0xa5f8d2 c_common_parse_file()
        ???:0
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.
====

This seems like a regression from GCC 10.

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

end of thread, other threads:[~2022-05-13 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 12:39 [Bug c++/99643] New: internal compiler error in build_over_call, involving array new and copy elision ensadc at mailnesia dot com
2021-03-18 13:20 ` [Bug c++/99643] [8/9/10/11 Regression] " jakub at gcc dot gnu.org
2021-04-03 16:48 ` jason at gcc dot gnu.org
2021-04-04  0:59 ` cvs-commit at gcc dot gnu.org
2021-04-04  1:00 ` [Bug c++/99643] [8/9/10 " jason at gcc dot gnu.org
2021-05-14  9:54 ` [Bug c++/99643] [9/10 " jakub at gcc dot gnu.org
2021-05-20 21:34 ` cvs-commit at gcc dot gnu.org
2021-06-01  8:19 ` rguenth at gcc dot gnu.org
2022-05-13 17:42 ` [Bug c++/99643] [9 " cvs-commit at gcc dot gnu.org
2022-05-13 17:59 ` jason 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).