bad error message , it could be better

Christian Templier STNA 7SO p5747 K224 templier@stna.dgac.fr
Tue Apr 20 23:47:00 GMT 1999


hello ,

problem :
---------

i have compile a file and had difficulties to decode the error message :

racine_sS.cc: In method 
`RACINE_BOAImpl_TASK_INTERFACE::RACINE_BOAImpl_TASK_INTERFACE(RACINE_BOAImpl_TASK_INTERFACE &, 
MIB_Process::CLIENT * = 0, CORBA_REFERENCE_INTEGRITY::_IN_HEAP = CORBA_REFERENCE_INTEGRITY::inHeap)':
racine_sS.cc:47: type `RACINE_BOAImpl_TASK_INTERFACE' is not a base type for type `CORBA_REFERENCE_INTEGRITY'


/netma/bin/SunOS5.6/bin/gcc -v -I. -c racine_sS.cc >& listing


RACINE_BOAImpl_TASK_INTERFACE is SERVER_INTERFACE(RACINE)

reason of error :
---------------

bad code ->

SERVER_INTERFACE(RACINE)::SERVER_INTERFACE(RACINE)(SERVER_INTERFACE(RACINE) &P_REFERENCE , PROCESS_CALLBACK * 
father , OBJECT_BASE::IN_HEAP isHeap) : 
_marker(P_REFERENCE._marker) ,

LANGUAGE_INTERFACE(RACINE_BOAImpl)<INTERFACE(LANGUAGE) >((LANGUAGE_INTERFACE(RACINE_BOAImpl)<INTERFACE(LANGUAGE) 
>&)P_REFERENCE,P_REFERENCE,this,father,OBJECT_BASE::inStack) ,

MODULE_LANGUAGE::LANGUAGE_INTERFACE(LANGUAGE)((MODULE_LANGUAGE::LANGUAGE_INTERFACE(LANGUAGE)&)P_REFERENCE,father,
(TACHE::BOOT)NULL,OBJECT_BASE::inStack,(void*)this) ...


good code --><== i have add "&"

SERVER_INTERFACE(RACINE)::SERVER_INTERFACE(RACINE)(SERVER_INTERFACE(RACINE) &P_REFERENCE , PROCESS_CALLBACK * 
father , CORBA_REFERENCE_INTEGRITY::IN_HEAP isHeap) : 
_marker(P_REFERENCE._marker) ,

LANGUAGE_INTERFACE(RACINE_BOAImpl)<SERVER_INTERFACE(RACINE) 
>((LANGUAGE_INTERFACE(RACINE_BOAImpl)<SERVER_INTERFACE(RACINE) 
>&)P_REFERENCE,&P_REFERENCE,this,father,CORBA_REFERENCE_INTEGRITY::inStack) , <== i have add "&"

MODULE_LANGUAGE::LANGUAGE_INTERFACE(LANGUAGE)((MODULE_LANGUAGE::LANGUAGE_INTERFACE(LANGUAGE)&)P_REFERENCE,father,
(TACHE::BOOT)NULL,OBJECT_BASE::inStack,(void*)this) ...

constructor desciptor -->

template <class INTERFACE(LANGUAGE)>

class LANGUAGE_INTERFACE(RACINE_BOAImpl) : virtual public  LANGUAGE_INTERFACE(RACINE) 

{public :

...

   LANGUAGE_INTERFACE(RACINE_BOAImpl)(INTERFACE(LANGUAGE) *interface , CORBA_REFERENCE_INTEGRITY::IN_HEAP 
isHeap=CORBA_REFERENCE_INTEGRITY::inHeap) ; 

   LANGUAGE_INTERFACE(RACINE_BOAImpl)(LANGUAGE_INTERFACE(RACINE_BOAImpl)<INTERFACE(LANGUAGE) > & P_REFERENCE , 
INTERFACE(LANGUAGE) * interface , INTERFACE(LANGUAGE) * newWorkspace , PROCESS_CALLBACK * father=NULL , 
CORBA_REFERENCE_INTEGRITY::IN_HEAP isHeap=CORBA_REFERENCE_INTEGRITY::inHeap) ; 

   LANGUAGE_INTERFACE(RACINE_BOAImpl)(LANGUAGE_INTERFACE(RACINE_BOAImpl)<INTERFACE(LANGUAGE) > & P_REFERENCE , 
PROCESS_CALLBACK * entry  , PROCESS_CALLBACK * father ) ; 
...
} ;



correction for egcs team :
-----------

could you write a better error message  :

for example : no matching call for constructor... candidates are ... .

REGARDS 

C.TEMPLIER
 ____________________________________________________________________________
|                |             |                                             |
|   ___    ___   | TEMPLIER    |                                             |
|  /__ \  / __\  |  christian  | Service Technique de la Navigation Aerienne |
|   __\ \/ /     |_____________|_____________________________________________|
|  / __   |   _  |             |                                             |
|  \ \_\   \_//  | Toulouse    | web http://www.stna.dgac.fr/~templier       |
|   \___/\___/   |      France | E_mail : templier@stna.dgac.fr              |
|                |             | tel    : 05.62.14.57.47                     |
 ----------------------------------------------------------------------------  
[ Oz web page		http://www.ps.uni-sb.de/oz/   ]
[ list administration	oz-users-request@ps.uni-sb.de ]



More information about the Gcc-bugs mailing list