public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109666] New: Segmentation fault with std::array using gcc 13
@ 2023-04-28 11:41 john.viklund at effnet dot com
  2023-04-28 12:18 ` [Bug c++/109666] [13/14 Regression] " redi at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: john.viklund at effnet dot com @ 2023-04-28 11:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109666
           Summary: Segmentation fault with std::array using gcc 13
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.viklund at effnet dot com
  Target Milestone: ---

Created attachment 54951
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54951&action=edit
Preprocessed source

gcc (GCC) 13.0.1 20230401 (Red Hat 13.0.1-0) running on Fedora 38

Compiled with:
/usr/bin/gcc -std=c++20 -O3 -c foo.cc

Gives the following output:
foo.cc: In instantiation of ‘Bar<T>::Bar() [with T = Foo]’:
foo.cc:19:23:   required from here
foo.cc:14:20: internal compiler error: Segmentation fault
   14 |   std::array<T, 1> a_{};
      |                    ^~
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cci1GNGP.out file, please attach this to
your bugreport.

Was also able to reproduce it using godbolt on gcc 13.1:
https://godbolt.org/z/7nK446P34

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

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

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28 11:41 [Bug c++/109666] New: Segmentation fault with std::array using gcc 13 john.viklund at effnet dot com
2023-04-28 12:18 ` [Bug c++/109666] [13/14 Regression] " redi at gcc dot gnu.org
2023-04-28 12:22 ` redi at gcc dot gnu.org
2023-04-28 14:20 ` mpolacek at gcc dot gnu.org
2023-04-28 14:21 ` mpolacek at gcc dot gnu.org
2023-05-01 14:25 ` [Bug c++/109666] [13/14 Regression] Segmentation fault with std::array using gcc 13 since r13-6788 jason at gcc dot gnu.org
2023-05-01 20:55 ` cvs-commit at gcc dot gnu.org
2023-05-02  7:19 ` carlosgalvezp at gmail dot com
2023-05-02 20:25 ` cvs-commit at gcc dot gnu.org
2023-05-03 17:11 ` jason at gcc dot gnu.org
2023-05-04 14:30 ` [Bug c++/109666] [12 Regression] Segmentation fault with std::array jason at gcc dot gnu.org
2023-05-04 14:48 ` cvs-commit at gcc dot gnu.org
2023-05-04 20:04 ` pinskia at gcc dot gnu.org
2023-05-08 12:27 ` rguenth at gcc dot gnu.org
2023-05-08 12:44 ` rguenth at gcc dot gnu.org
2023-05-09 11:30 ` marxin at gcc dot gnu.org
2023-08-11 21:21 ` cvs-commit at gcc dot gnu.org
2023-09-11 22:11 ` 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).