From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23934 invoked by alias); 16 Sep 2006 11:55:20 -0000 Received: (qmail 23896 invoked by uid 48); 16 Sep 2006 11:55:10 -0000 Date: Sat, 16 Sep 2006 11:55:00 -0000 Subject: [Bug c++/29105] New: [4.2 Regression] segfault in add_candidates X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tbm at cyrius dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01526.txt.bz2 List-Id: 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::TagFilter()': adept-tagfilter.cc:45: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See 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