public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98463] New: [11 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:5491
@ 2020-12-28 15:18 romain.geissler at amadeus dot com
  2020-12-28 19:55 ` [Bug c++/98463] [11 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:5491 by r11-2720 hjl.tools at gmail dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: romain.geissler at amadeus dot com @ 2020-12-28 15:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98463
           Summary: [11 Regression] internal compiler error: in
                    output_constructor_regular_field, at varasm.c:5491
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: romain.geissler at amadeus dot com
  Target Milestone: ---

Hi,

The following C++ code fails to compile with gcc trunk but works on gcc 9 and
10 (tested on compiler explorer):


#include <memory>

struct A
{
    std::unique_ptr<int> _member;

    virtual ~A(){}
};

A a;


Compiled without any CXXFLAGS on x64 Linux. Compiler explorer shows:

<source>:10:4: internal compiler error: in output_constructor_regular_field, at
varasm.c:5491
   10 | A a;
      |    ^
0x1cba449 internal_error(char const*, ...)
        ???:0
0x6b0031 fancy_abort(char const*, int, char const*)
        ???:0
0x13ceaf3 assemble_variable(tree_node*, int, int, int)
        ???:0
0xb4207f symbol_table::finalize_compilation_unit()
        ???: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.
Compiler returned: 1

Cheers,
Romain

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

end of thread, other threads:[~2021-01-29 16:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 15:18 [Bug c++/98463] New: [11 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:5491 romain.geissler at amadeus dot com
2020-12-28 19:55 ` [Bug c++/98463] [11 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:5491 by r11-2720 hjl.tools at gmail dot com
2020-12-28 20:32 ` redi at gcc dot gnu.org
2020-12-29 13:56 ` romain.geissler at amadeus dot com
2021-01-05 10:41 ` rguenth at gcc dot gnu.org
2021-01-07 12:22 ` jakub at gcc dot gnu.org
2021-01-07 13:08 ` jakub at gcc dot gnu.org
2021-01-07 13:42 ` jakub at gcc dot gnu.org
2021-01-07 16:58 ` jakub at gcc dot gnu.org
2021-01-13 16:29 ` jakub at gcc dot gnu.org
2021-01-14 11:14 ` rguenth at gcc dot gnu.org
2021-01-19 12:52 ` rguenth at gcc dot gnu.org
2021-01-21 21:24 ` mpolacek at gcc dot gnu.org
2021-01-24  5:51 ` jason at gcc dot gnu.org
2021-01-25 15:38 ` cvs-commit at gcc dot gnu.org
2021-01-25 16:12 ` jason at gcc dot gnu.org
2021-01-26 20:01 ` cvs-commit at gcc dot gnu.org
2021-01-29 16:00 ` cvs-commit 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).