public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc at abeckmann dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/35828] [C++0x] ICE on default template template parameter in template function Date: Mon, 20 Apr 2009 17:51:00 -0000 [thread overview] Message-ID: <20090420175103.18367.qmail@sourceware.org> (raw) In-Reply-To: <bug-35828-6959@http.gcc.gnu.org/bugzilla/> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1969 bytes --] ------- Comment #6 from gcc at abeckmann dot de 2009-04-20 17:51 ------- I stumbled across this ICE on a very similar testcase (on 4.3.4, 4.4.0, 4.5.0): ---------- 8< ---------- template < typename > struct A ; template < template < typename > class = A > void test () { test (); } ---------- >8 ---------- =========== 4.4.0 ========== $ x86_64-linux-gnu-g++-4.4.x -v -std=c++0x -c ice-in-tsubst_decl-cp_pt_c_8101.min.ii Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4_4-branch/configure --prefix=/opt/software/gcc-x86_64/gcc-4.4.x --program-suffix=-4.4.x --enable-languages=c,c++ --enable-checking Thread model: posix gcc version 4.4.0 20090413 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-std=c++0x' '-c' '-shared-libgcc' '-mtune=generic' /opt/software/gcc-x86_64/gcc-4.4.x/libexec/gcc/x86_64-unknown-linux-gnu/4.4.0/cc1plus -fpreprocessed ice-in-tsubst_decl-cp_pt_c_8101.min.ii -quiet -dumpbase ice-in-tsubst_decl-cp_pt_c_8101.min.ii -mtune=generic -auxbase ice-in-tsubst_decl-cp_pt_c_8101.min -std=c++0x -version -o /tmp/ccAHdc5J.s GNU C++ (GCC) version 4.4.0 20090413 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.0 20090413 (prerelease), GMP version 4.2.2, MPFR version 2.3.1. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 4c95a5cf24794a394976148039ecc611 ice-in-tsubst_decl-cp_pt_c_8101.min.ii: In function void test(): ice-in-tsubst_decl-cp_pt_c_8101.min.ii:1: internal compiler error: in tsubst_decl, at cp/pt.c:8101 =========================== I also got the segmentation fault on this similar testcase, reported as bug #39822 before seeing this report: ---------- 8< ---------- template < typename > struct A ; template < typename X, template < typename > class = A > void test ( X ) { A < int > T ; test ( T ) ; } ---------- >8 ---------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828
next prev parent reply other threads:[~2009-04-20 17:51 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-04-04 21:29 [Bug c++/35828] New: ICE on template-heavy C++ code, reported in innocent source line gcc at cohi dot at 2008-04-04 21:31 ` [Bug c++/35828] " gcc at cohi dot at 2008-04-04 21:44 ` gcc at cohi dot at 2008-04-08 8:32 ` gcc at cohi dot at 2008-04-08 8:35 ` [Bug c++/35828] ICEs in template-heavy C++0x code gcc at cohi dot at 2008-04-08 10:56 ` gcc at cohi dot at 2008-12-28 22:13 ` [Bug c++/35828] [C++0x] ICE on default template template parameter in template function reichelt at gcc dot gnu dot org 2009-04-20 17:51 ` gcc at abeckmann dot de [this message] 2009-04-22 23:55 ` pinskia at gcc dot gnu dot org 2009-07-07 22:04 ` jason at gcc dot gnu dot org 2009-07-07 22:11 ` jason at gcc dot gnu dot org 2009-07-07 22:16 ` jason at gcc dot gnu dot 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=20090420175103.18367.qmail@sourceware.org \ --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).