public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105667] New: Internal compiler segmentation fault
@ 2022-05-19 23:22 akira65535 at protonmail dot com
  2022-05-19 23:34 ` [Bug c++/105667] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: akira65535 at protonmail dot com @ 2022-05-19 23:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105667
           Summary: Internal compiler segmentation fault
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: akira65535 at protonmail dot com
  Target Milestone: ---

Created attachment 53003
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53003&action=edit
Simple cpp file which causes the bug

~ $ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12.1.0/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.1.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/g++-v12
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 12.1.0 p5'
--disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --without-zstd --enable-lto
--without-isl --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.1.0 (Gentoo 12.1.0 p5)


 ~ $ g++ -std=c++20 test.cpp
test.cpp: In instantiation of ‘Example<int, int>::crash()::<lambda()> [with
long unsigned int i = 0]’:
test.cpp:17:10:   required from ‘static void Example<Ts>::crash() [with Ts =
{int, int}]’
test.cpp:22:29:   required from here
test.cpp:8:37: internal compiler error: Segmentation fault
    8 |     using Types = typename lambda_t<[] <typename T> () {}>::type;
      |                                     ^~~~~~~~~~~~~~~~~~~~~
0x1b4314e internal_error(char const*, ...)
        ???:0
0x7fbb64 template_parms_to_args(tree_node*)
        ???:0
0x82916e tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x80bd96 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ???:0
0x82093f tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x814165 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x82093f tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x813bbc tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x81335d tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x81add9 instantiate_decl(tree_node*, bool, bool)
        ???:0
0x72e94f mark_used(tree_node*, int)
        ???:0
0x6b4f8a build_op_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int)
        ???:0
0x840d98 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ???:0
0x80a61e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ???:0
0x81add9 instantiate_decl(tree_node*, bool, bool)
        ???:0
0x82fb1b instantiate_pending_templates(int)
        ???:0
0x730608 c_parse_final_cleanups()
        ???:0

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

end of thread, other threads:[~2024-04-13 20:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 23:22 [Bug c++/105667] New: Internal compiler segmentation fault akira65535 at protonmail dot com
2022-05-19 23:34 ` [Bug c++/105667] " pinskia at gcc dot gnu.org
2022-05-19 23:47 ` [Bug c++/105667] [C++20] lambas in template argument sometimes causes an ICE (seg fault) pinskia at gcc dot gnu.org
2022-05-19 23:48 ` pinskia at gcc dot gnu.org
2022-05-19 23:51 ` pinskia at gcc dot gnu.org
2022-05-20  7:50 ` marxin at gcc dot gnu.org
2022-09-04 17:40 ` pobrn at protonmail dot com
2023-05-08 21:27 ` eric.niebler at gmail dot com
2023-06-30 19:56 ` blubban at gmail dot com
2024-04-13 20:24 ` [Bug c++/105667] [C++20] lambdas in template argument sometimes cause " 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).