[Bug c++/18957] New: [4.0 regression] ICE in perform_or_defer_access_check

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Dec 13 15:43:00 GMT 2004


$ cat parser9x.ii
template<class T> class PLCFIterator;
template<class T> class PLCF
{
    friend class PLCFIterator<T>;
public:
    PLCFIterator<T> at( unsigned int index ) const;
};
template<class T> class PLCFIterator
{
    friend PLCFIterator<T> PLCF<T>::at( unsigned int ) const;
public:
    PLCFIterator( const PLCF<T>& plcf );
};
void Position()
{
    PLCFIterator<int> it( 1 );
}
$ ./cc1plus -quiet -fpreprocessed parser9x.ii
parser9x.ii: In instantiation of œôòøPLCFIterator<int>œôòù:
parser9x.ii:16:   instantiated from here
parser9x.ii:9: 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.


Program received signal SIGSEGV, Segmentation fault.
perform_or_defer_access_check (binfo=0x0, decl=0x20000000004a6ca0)
    at ../../gcc/cp/semantics.c:311
311       gcc_assert (TREE_CODE (binfo) == TREE_BINFO);

-- 
           Summary: [4.0 regression] ICE in perform_or_defer_access_check
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list