Article View: gnu.g++.bug
Article #1285Bug report for g++ 2.3.2
From: dececco
Date: Wed, 16 Dec 1992 16:48
Date: Wed, 16 Dec 1992 16:48
106 lines
2952 bytes
2952 bytes
The following file, compiled with g++ 2.3.2,
on a SparcStation II with SunOs 4.1.0:
--------------------------------------------------------------------------------
template<class Info> class A
{
Info info; // if deleted, compile
};
template<class Info> class B
{
A<Info> **foo; // if deleted, compile
};
template<class T> class C
{
public:
inline void Frob(T& elem) {} // if deleted, compile
};
template<class T> class D: private C<T>
{
};
template<class T> class E: private C< T * >
{
public:
inline void Zap(T& elem) { }; // if deleted, compile
};
class F
{
public:
~F();// if deleted, compile
};
class G
{
public:
D<int> zap; // if deleted, compile
B<F> foo; // if deleted, compile
};
class H
{
public:
E<int> frob;// if deleted, compile
};
--------------------------------------------------------------------------------
Produce the following output:
--------------------------------------------------------------------------------
cd /users3/dececco/Projects/Back/Errore/
make -k rogne
gcc-2.3.2 -v -Wall -g -DMAX=3 -pipe -o rogne -c rogne.cc
Reading specs from /usr/local/lib/gcc-lib/sparc-sunos4.1/2.3.2/specs
gcc version 2.3.2
/usr/local/lib/gcc-lib/sparc-sunos4.1/2.3.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -g -Wall -DMAX=3 rogne.cc |
/usr/local/lib/gcc-lib/sparc-sunos4.1/2.3.2/cc1plus -quiet -dumpbase rogne.cc -g -Wall -version -o - |
as - -o /usr/tmp/cca168181.o
GNU CPP version 2.3.2 (sparc)GNU C++ version 2.3.2
(sparc) compiled by GNU C version 2.3.2.
rogne.cc:63: Internal compiler error.
rogne.cc:63: Please report this to `bug-g++@prep.ai.mit.edu'.
*** Error code 1
make: Warning: Target `rogne' not remade because of errors
Compilation finished at Wed Dec 16 15:44:18
--------------------------------------------------------------------------------
The name "rogne" is more orless the translation of troubbles in Italian.
Maurizio
Maurizio De Cecco
Office Home
NSL
57-59 rue Lhomond 75005 Paris 44 rue Servan 75011 Paris
tel +33-(1)-43367750 tel: +33-(1)-49299507
fax +33-(1)-43365978 fax: +33-(1)-49299507
email: dececco@nsl.fr email: dececco@birillo.gna.org
==> please use office e-mail for professional use only <==
==> please use home e-mail for personal and Alice communications <==
==> if you are in a hurry, use office e-mail <==
Technical Details
Message-ID:
<9212161448.AA16984@combray.nsl.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nsl.UUCP!dececcoShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nsl.UUCP!dececco From: dececco@nsl.UUCP Subject: Bug report for g++ 2.3.2 Message-ID: <9212161448.AA16984@combray.nsl.fr> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 16 Dec 1992 16:48:37 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 107