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

(sid)312:[EMAIL PROTECTED]: ~] /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:[EMAIL PROTECTED]: ~] g++ -c adept-tagfilter.cc
(sid)314:[EMAIL PROTECTED]: ~]

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

Reply via email to