public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29105]  New: [4.2 Regression] segfault in add_candidates
@ 2006-09-16 11:55 tbm at cyrius dot com
  2006-09-16 11:56 ` [Bug c++/29105] " tbm at cyrius dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tbm at cyrius dot com @ 2006-09-16 11:55 UTC (permalink / raw)
  To: gcc-bugs

I get the following segfault with current mainline that I didn't get with
20060823:

(sid)312:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/g++ -c adept-tagfilter.cc
adept-tagfilter.cc: In constructor 'aptFront::TagFilter<T>::TagFilter()':
adept-tagfilter.cc:45: 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.
(sid)313:tbm@em64t: ~] g++ -c adept-tagfilter.cc
(sid)314:tbm@em64t: ~]

Testcase:

namespace aptFront
{
  namespace cache
  {
    namespace component
    {
      class Tags;
    }
    class Observer
    {
      template < typename T > void observeComponent ();
    };
  }
  namespace utils
  {
    template < typename T > struct MultiTypeBase
    {
    };
    const int notComparable = 0;
    const int equalityComparable = 1;
      template < typename Self, typename Base, int comparable =
      notComparable > struct MultiTypeImpl:public Base {
    };
  }
  namespace predicate
  {
    template < typename T > struct Base:public utils::MultiTypeBase < Base <
      T > >
    {
    };
      template < typename T, typename Self, typename Base =
      Base < T > >struct Implementation:utils::MultiTypeImpl < Self, Base,
      utils::equalityComparable >
    {
    };
  }
  struct InterfacingPredicate
  {
  };
    template < typename T > struct TagFilter:predicate::Implementation < T,
    TagFilter < T > >, InterfacingPredicate, cache::Observer
  {
    TagFilter ()
    {
      observeComponent < cache::component::Tags > ();
    }
  };
}


-- 
           Summary: [4.2 Regression] segfault in add_candidates
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29105


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

end of thread, other threads:[~2006-10-05 20:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-16 11:55 [Bug c++/29105] New: [4.2 Regression] segfault in add_candidates tbm at cyrius dot com
2006-09-16 11:56 ` [Bug c++/29105] " tbm at cyrius dot com
2006-09-16 16:00 ` pinskia at gcc dot gnu dot org
2006-09-17  9:08 ` pinskia at gcc dot gnu dot org
2006-09-18 19:23 ` [Bug c++/29105] [4.2 Regression] segfault in add_candidates with a non template base class and a template member function janis at gcc dot gnu dot org
2006-09-20 22:50 ` mmitchel at gcc dot gnu dot org
2006-10-02  1:28 ` mmitchel at gcc dot gnu dot org
2006-10-02  4:13 ` mmitchel at gcc dot gnu dot org
2006-10-02  4:34 ` mmitchel at gcc dot gnu dot org
2006-10-05 20:31 ` reichelt at gcc dot gnu dot 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).