public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "v dot lesk at ic dot ac dot uk" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/31027] Compiler segfaults in simple virtual inheritance situation Date: Fri, 02 Mar 2007 17:02:00 -0000 [thread overview] Message-ID: <20070302170207.5607.qmail@sourceware.org> (raw) In-Reply-To: <bug-31027-14183@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from v dot lesk at ic dot ac dot uk 2007-03-02 17:02 ------- //Couldnt include attachment so attaching (short) code here. See next comment for compiler output. class A { private: protected: public: }; template<typename T> class C: virtual public A { private: protected: public: C(); template<typename T_OTHER>C(const C<T_OTHER>&); C func(const class C<long>&)const; operator bool(void)const; }; template<typename T> C<T>:: C() { } template<typename T> template<typename T_OTHER> C<T>:: C(const C<T_OTHER>&a) { } template<typename T> C<T> C<T>:: func(const class C<long>&)const { C<T>result; return result; } template<typename T> class D: public C<T> { private: protected: public: void func2(void); }; template<typename T> void D<T>:: func2(void) { C<int>a; a.func(a); } void func3(void) { C<int>a; a.func(a); } int main(int argc,const char*const*argv) { return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31027
next prev parent reply other threads:[~2007-03-02 17:02 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-02 16:46 [Bug c++/31027] New: " v dot lesk at ic dot ac dot uk 2007-03-02 17:02 ` v dot lesk at ic dot ac dot uk [this message] 2007-03-02 17:03 ` [Bug c++/31027] " v dot lesk at ic dot ac dot uk 2007-03-02 17:45 ` pinskia at gcc dot gnu dot org 2007-03-07 21:44 ` v dot lesk at ic dot ac dot uk 2007-03-09 4:54 ` [Bug c++/31027] [4.1/4.2/4.3 regression] " bangerth at dealii dot org 2007-03-09 11:28 ` v dot lesk at ic dot ac dot uk 2007-04-13 15:51 ` v dot lesk at ic dot ac dot uk 2007-06-30 9:08 ` pinskia at gcc dot gnu dot org 2007-07-04 3:05 ` mmitchel at gcc dot gnu dot org 2007-07-11 21:52 ` paolo at gcc dot gnu dot org 2007-07-11 21:54 ` paolo at gcc dot gnu dot org 2007-07-11 21:56 ` [Bug c++/31027] [4.1 " pcarlini at suse dot de 2008-07-04 16:03 ` jsm28 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=20070302170207.5607.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).