Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Jonathan March
Fri, 30 Oct 1992 16:54
A bug?
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads