Article View: gnu.g++.bug
Article #1350Bug report gcc version 2.3.3
From: Thomas Leopold
Date: Thu, 07 Jan 1993 15:49
Date: Thu, 07 Jan 1993 15:49
66 lines
1783 bytes
1783 bytes
Bug report
==========
Program: gcc version 2.3.3 (g++)
Machine: Sun Sparc ELC
OS: Sun-OS 4.1.1
When compiling the program set.c with
g++ set.c
the following error message occurs:
set.c: In method `int Set<int>::size ()':
set.c:9: Internal compiler error 162.
set.c:9: Please report this to `bug-g++@prep.ai.mit.edu'.
set.c
-----------------------------------------------------------------------
template <class Element>
class Set {
Element** _set ;
int _size ;
int _max ;
static int chunk ;
public:
Set() ;
int size() { return _size ; }
Set& insert( Element& ) ;
Set& remove( Element& ) ;
int contains( Element& ) ;
} ;
// ============= class member functions for class Set =============
template <class Element>
Set<Element>::Set()
{
_max = chunk ;
_size = 0 ;
}
template <class Element>
Set<Element>::size()
{
return _size ;
}
int main( void )
{
Set<int> a ;
int i ;
return 0 ;
}
-----------------------------------------------------------------------
I know that this program is not correct, but I think this is not the
error message one expects.
Thomas Leopold, University of Kaiserslautern, Germany
leopold@informatik.uni-kl.de
Technical Details
Message-ID:
<9301071649.aa09658@sayers.informatik.uni-kl.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!informatik.uni-kl.DE!leopoldShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!informatik.uni-kl.DE!leopold From: leopold@informatik.uni-kl.DE (Thomas Leopold) Subject: Bug report gcc version 2.3.3 Message-ID: <9301071649.aa09658@sayers.informatik.uni-kl.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 7 Jan 1993 15:49:40 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 68