public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "schmid at snake dot iap dot physik dot tu-darmstadt dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/14545] [3.4/3.5 Regression] Cannot compile pooma-gcc (regression) Date: Sat, 13 Mar 2004 23:41:00 -0000 [thread overview] Message-ID: <20040313234111.1990.qmail@sources.redhat.com> (raw) In-Reply-To: <20040312062911.14545.schmid@snake.iap.physik.tu-darmstadt.de> ------- Additional Comments From schmid at snake dot iap dot physik dot tu-darmstadt dot de 2004-03-13 23:41 ------- Here is a reduced version of the testcase: source code t.C t.C class NoInit {}; template<class DT> class DomainBase { public: typedef typename DT::AskDomain_t AskDomain_t; typedef typename DT::Domain_t Domain_t; inline Domain_t &unwrap() { return *static_cast<Domain_t *>(this); } const Domain_t &unwrap() const { return *static_cast<Domain_t *>(const_cast<DomainBase<DT> *>(this)); } AskDomain_t firsts() const { AskDomain_t retval = NoInit(); int i = 1; retval[i] = unwrap()[i].first(); return retval; } }; The initialisation with NoInit() is responsible for the ice. When I remove the unwrap functions and the Domain_t typedef the code still ices. I have no idea whether the code is then still legal, though. g++ -v -c t.C Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs Configured with: ../gcc/configure --enable-threads=posix --enable-languages=c,c ++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug Thread model: posix gcc version 3.4.0 20040313 (prerelease) /usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE t.C -quiet -dumpbase t.C -mtune=pentiumpro -auxbase t -version -o /tmp/ ccGy3M7a.s ignoring nonexistent directory "NONE/include" ignoring nonexistent directory "/usr/local/lib/gcc/ i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ i686-pc-linux-gnu /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ backward /usr/local/include /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include /usr/include End of search list. GNU C++ version 3.4.0 20040313 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 3.4.0 20040313 (prerelease). GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274 t.C: In member function `typename DT::AskDomain_t DomainBase<DT>::firsts() const': t.C:18: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14545
next prev parent reply other threads:[~2004-03-13 23:41 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-12 6:29 [Bug c++/14545] New: " schmid at snake dot iap dot physik dot tu-darmstadt dot de 2004-03-12 6:32 ` [Bug c++/14545] " schmid at snake dot iap dot physik dot tu-darmstadt dot de 2004-03-12 6:42 ` [Bug c++/14545] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org 2004-03-13 23:41 ` schmid at snake dot iap dot physik dot tu-darmstadt dot de [this message] 2004-03-14 3:45 ` pinskia at gcc dot gnu dot org 2004-03-15 13:41 ` giovannibajo at libero dot it 2004-03-15 16:58 ` giovannibajo at libero dot it 2004-03-16 15:20 ` pinskia at gcc dot gnu dot org 2004-03-17 1:19 ` giovannibajo at libero dot it 2004-03-17 1:34 ` mark at codesourcery dot com 2004-03-18 1:12 ` giovannibajo at libero dot it 2004-03-18 14:04 ` bangerth at dealii dot org 2004-03-18 14:42 ` giovannibajo at libero dot it 2004-03-18 15:09 ` bangerth at dealii dot org 2004-03-18 15:19 ` mark at codesourcery dot com 2004-03-18 15:30 ` bangerth at dealii dot org 2004-03-18 15:32 ` giovannibajo at libero dot it 2004-03-18 15:48 ` mark at codesourcery dot com 2004-03-18 15:53 ` bangerth at dealii dot org 2004-03-19 9:59 ` cvs-commit at gcc dot gnu dot org 2004-03-19 11:42 ` giovannibajo at libero dot it 2004-03-19 11:42 ` cvs-commit 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=20040313234111.1990.qmail@sources.redhat.com \ --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).