public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iamkirkezz at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113170] New: ICE: Segfault (template template parameter, alias template, default value) Date: Fri, 29 Dec 2023 13:12:23 +0000 [thread overview] Message-ID: <bug-113170-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113170 Bug ID: 113170 Summary: ICE: Segfault (template template parameter, alias template, default value) Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamkirkezz at gmail dot com Target Milestone: --- Created attachment 56964 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56964&action=edit g++ main.cpp -v output | gcc version: 13.2.1 20230801 | system type: x86_64-pc-linux-gnu | gcc options: """ /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror """ | the complete command line: g++ main.cpp | gcc output (for the full `g++ -v` output, see the attachment): """ g++: internal compiler error: Segmentation fault signal terminated program cc1plus """ | source file (https://godbolt.org/z/cKTGrn1sP): """ template<typename T, template<typename> typename TT> struct S; template<typename T = int, template<typename> typename TT = S> struct SSS {}; template<typename T = int, template<typename> typename TT = SSS> struct S {}; template<template<typename> typename TT = S, typename T = int> using SS = S<T, TT>; int main() { SS<S, int> ss; } """
next reply other threads:[~2023-12-29 13:12 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-29 13:12 iamkirkezz at gmail dot com [this message] 2023-12-29 13:17 ` [Bug c++/113170] ICE: Segfault (template template parameter, alias template, default template argument) iamkirkezz at gmail dot com 2023-12-31 8:28 ` pinskia at gcc dot gnu.org 2023-12-31 8:32 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113170-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).