public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113170] New: ICE: Segfault (template template parameter, alias template, default value)
@ 2023-12-29 13:12 iamkirkezz at gmail dot com
  2023-12-29 13:17 ` [Bug c++/113170] ICE: Segfault (template template parameter, alias template, default template argument) iamkirkezz at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: iamkirkezz at gmail dot com @ 2023-12-29 13:12 UTC (permalink / raw)
  To: gcc-bugs

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;
}
"""

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

end of thread, other threads:[~2023-12-31  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29 13:12 [Bug c++/113170] New: ICE: Segfault (template template parameter, alias template, default value) iamkirkezz at gmail dot com
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

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).