Article View: gnu.gcc.bug
Article #24A bug?
From: Jonathan March
Date: Fri, 30 Oct 1992 16:54
Date: Fri, 30 Oct 1992 16:54
56 lines
1199 bytes
1199 bytes
This:
int main()
{
Pair* pr = new int(0, 0);
Handle<Pair> h(pr);
//int i = h->->i;
}
gives:
test_data.c: In function `int main ()':
test_data.c:16: `Pair' undeclared (first use this function)
...
And This:
#include"handle.h"
class Pair {
public:
int i;
int j;
Pair(int ii, int jj): i(ii), j(jj) {}
};
int main()
{
Pair* pr = new int(0, 0);
Handle<Pair> h(pr);
//int i = h->->i;
}
gives:
/usr/contrib/bin/gcc: Internal compiler error: program cc1plus got fatal signal
11
using:
g++
but using CC, gives:
"test_data.c", line 1: sorry, not implemented: template
I am working on a sparc station.
g++ is version 2.2.2
and CC is AT&T version 2.1
Jon March
Technical Details
Message-ID:
<9210301654.AA06365@hpb.lut.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lut.ac.uk!J.MarchShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lut.ac.uk!J.March From: J.March@lut.ac.uk (Jonathan March) Subject: A bug? Message-ID: <9210301654.AA06365@hpb.lut.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 30 Oct 1992 16:54:21 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 59