Internal compiler error (fwd)

Martin Hamilton martinh@gnu.org
Tue Aug 17 07:13:00 GMT 1999


SmartList bounced this to me because it was sent from root...  Martin

Forwarded message:
| From owner-gnulists-ownrr  Thu Aug  5 11:27:08 1999
| Date: Thu, 5 Aug 1999 10:53:33 -0400
| X-From_: ccx004@coventry.ac.uk  Thu Aug  5 10:53:21 1999
| Sender: root@coventry.ac.uk
| Message-ID: <37A9A49C.A52E6B40@coventry.ac.uk>
| Old-Date: Thu, 05 Aug 1999 15:50:04 +0100
| From: Colin Bruce <ccx004@coventry.ac.uk>
| Organization: Coventry University
| X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.6 i586)
| X-Accept-Language: en
| MIME-Version: 1.0
| To: bug-gcc@gnu.org
| Subject: Internal compiler error
| Content-Type: multipart/mixed;
|  boundary="------------111F869FA0FB69A87B0E7EBE"
| X-Diagnostic: Mail coming from a daemon, ignored
| X-Envelope-To: bug-gcc
| 
| This is a multi-part message in MIME format.
| --------------111F869FA0FB69A87B0E7EBE
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| 
| Dear All,
| 
| I have been getting errors like this compiling sourcecode fetched from
| various Internet sites. If I redo the
| make the error will not be repeated. I am compiling mico 2.2.7 using gcc
| on a linux machine. The linux version
| is 2.2.6 from the slackware 3.6 system. G++ version is:
| 
| Reading specs from
| /usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/specs
| gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
| 
| The error is as follows:
| 
| c++  -DCPP=\"mico-cpp\" -I. -I../idl -I../include -O
| -ftemplate-depth-42  -fno-exceptions -I/usr/local/include  -fexceptions
| -c ir_base.cc -o ir_base.o
| In file included from ../include/CORBA.h:202,
|                  from ir_base.cc:8:
| ../include/mico/dsi.h:50: Internal compiler error.
| ../include/mico/dsi.h:50: Please submit a full bug report to
| `egcs-bugs@egcs.cygnus.com'.
| ../include/mico/dsi.h:50: See
| <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
| make[1]: *** [ir_base.o] Error 1
| make[1]: Leaving directory `/usr/local/src/mico/ir'
| make: *** [system] Error 1
| 
| The source code is very large so I'm not sure if this report will help
| but I have included the header file which the error is reported in.
| However, it appears to move around so I doubt if it is this file which
| is actually causing the problem.
| 
| Best wishes....
| Colin Bruce
| 
| 
| --------------111F869FA0FB69A87B0E7EBE
| Content-Type: text/plain; charset=us-ascii;
|  name="dsi.h"
| Content-Transfer-Encoding: 7bit
| Content-Disposition: inline;
|  filename="dsi.h"
| 
| // -*- c++ -*-
| /*
|  *  MICO --- a free CORBA implementation
|  *  Copyright (C) 1997-98 Kay Roemer & Arno Puder
|  *
|  *  This library is free software; you can redistribute it and/or
|  *  modify it under the terms of the GNU Library General Public
|  *  License as published by the Free Software Foundation; either
|  *  version 2 of the License, or (at your option) any later version.
|  *
|  *  This library is distributed in the hope that it will be useful,
|  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
|  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
|  *  Library General Public License for more details.
|  *
|  *  You should have received a copy of the GNU Library General Public
|  *  License along with this library; if not, write to the Free
|  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|  *
|  *  Send comments and/or bug reports to:
|  *                 mico@informatik.uni-frankfurt.de
|  */
| 
| #ifndef __mico_dsi_h__
| #define __mico_dsi_h__
| 
| class ObjectAdapter;
| class ORBRequest;
| 
| class ServerRequestBase : public CORBA::ServerlessObject {
| protected:
|     CORBA::Boolean _canceled;
| public:
|     ServerRequestBase ()
|         : _canceled (FALSE)
|     {}
|     virtual ~ServerRequestBase ();
| 
|     virtual CORBA::Environment_ptr environment () = 0;
|     void cancel ()
|     { _canceled = TRUE; }
| 
|     static ServerRequestBase_ptr _duplicate (ServerRequestBase_ptr o)
|     {
| 	if (o)
| 	    o->_ref();
| 	return o;
|     }
|     static ServerRequestBase_ptr _nil ()
|     {
| 	return 0;
|     }
| };
| 
| typedef ObjVar<ServerRequestBase> ServerRequestBase_var;
| 
| 
| class ImplementationBase : virtual public CORBA::Object {
| protected:
|     ORB_ptr _morb;
|     BOA_ptr _mboa;
| public:
|     ImplementationBase ();
|     virtual ~ImplementationBase ();
| 
|     virtual CORBA::Boolean _save_object ();
|     ORB_ptr _orb ();
|     ORB_ptr _orbnc ();
| 
|     virtual void _create_ref (const BOA::ReferenceData &, InterfaceDef *,
| 			      ImplementationDef *, const char *repoid);
|     virtual void _restore_ref (Object_ptr orig, const BOA::ReferenceData &,
| 			       InterfaceDef *, ImplementationDef *);
|     virtual void _dispose_ref ();
|     virtual const char *_impl_name (const char *);
| 
|     ImplementationDef *_find_impl (const char *repoid, const char *name);
|     InterfaceDef *_find_iface (const char *repoid);
|     
|     BOA_ptr _boa ();
|     Object_ptr _this ();
| 
|     virtual ServerRequestBase_ptr make_request (ORBRequest *,
| 						CORBA::Object_ptr,
| 						CORBA::ULong,
| 						CORBA::ObjectAdapter *,
| 						CORBA::Principal_ptr) = 0;
| 
|     virtual void doinvoke (ServerRequestBase_ptr request,
| 			   Environment &env) = 0;
| };
| 
| /*
|  * XXX CORBA spec says all methods may throw SystemException (18-6) ...
|  *
|  * memory management:
|  * - ServerRequest owns res and except, even dir_params (the NVList
|  *   passed to params()) is freed by ServerRequest [18-6]
|  * - params() must always be called by DIR exactly once [14-26]
|  */
| class ServerRequest : public ServerRequestBase {
|     typedef CORBA::ULong MsgId;
|     CORBA::ObjectAdapter *_oa;
|     MsgId _msgid;
|     Object_ptr _obj;
|     ORBRequest *_req;
|     NVList_ptr _dir_params;
|     Context_ptr _context;
|     Any_var _res;
|     Environment _env;
|     ServerlessObject_ptr _iceptreq;
|     CORBA::Boolean _aborted;
| public:
|     // begin-mico-extension
|     ServerRequest (ORBRequest *req, Object_ptr obj, MsgId msgid,
|                    CORBA::ObjectAdapter *oa, CORBA::Principal_ptr);
|     ~ServerRequest ();
| 
|     ORBRequest *request ();
|     void set_out_args ();
|     NVList_ptr arguments ();
|     Any *result ();
|     Exception *exception ();
|     Environment_ptr environment ();
|     // end-mico-extension
| 
|     // CORBA 2.2 mapping [20.36.1]
|     const char * operation ();
|     void arguments (NVList_ptr &);
|     void set_result (const Any &);
|     void set_exception (const Any &);
|     // Context_ptr ctx () as below
| 
|     const char *op_name ();
|     OperationDef_ptr op_def ();
|     Context_ptr ctx ();
|     CORBA::Boolean params (NVList_ptr params);
|     void result (Any *val);
|     void exception (Any *val);
|     void exception (Exception *ex);
| 
|     static ServerRequest_ptr _duplicate (ServerRequest_ptr o)
|     {
| 	if (o)
| 	    o->_ref();
| 	return o;
|     }
|     static ServerRequest_ptr _nil ()
|     {
| 	return 0;
|     }
| };
| 
| typedef ObjVar<ServerRequest> ServerRequest_var;
| 
| 
| // base class for all object implementations. constructor creates
| // object reference and registers with BOA.
| class DynamicImplementation : virtual public ImplementationBase {
| public:
|     DynamicImplementation ();
|     virtual ~DynamicImplementation ();
| 
| 
|     virtual ServerRequestBase_ptr make_request (ORBRequest *,
| 						CORBA::Object_ptr,
| 						CORBA::ULong,
| 						CORBA::ObjectAdapter *,
| 						CORBA::Principal_ptr);
|     virtual void doinvoke (ServerRequestBase_ptr request,
| 			   Environment &env);
|     virtual void invoke (ServerRequest_ptr request,
| 			 Environment &env) = 0;
| };
| 
| 
| #endif // __mico_dsi_h__
| 
| --------------111F869FA0FB69A87B0E7EBE--
| 
| 



More information about the Gcc-bugs mailing list