gautron@litp.ibp.fr (Philippe GAUTRON) (05/30/90)
- SUN OS 4.0.3, Sun 4/60
------------------------
Consider the following program:
static int _as[3];
inline int as_fp(){
return _as[0];
}
inline int* as_ctxt_get(){
asm ("nop");;
asm ("nop");;
return _as;
}
inline int as_ctxt_npc(){ return _as[2]; }
main(){
(void) as_ctxt_get();
}
Diagnosis
---------
"ff.c", line 18: internal <<AT&T C++ Translator 2.00.02 08/25/89>> error: 46102
4-> expression::print return
What I think:
------------
The compiler does't accept inlining when the function is declared
returning a int* and call to this function is cast to (void)
-----------------------
Philippe Gautron, UUCP: gautron@rxf.ibp.fr,
Rank Xerox France / U. de Paris VI, gautron@sor.inria.fr
Universite de Paris VI - LITP,
4 place Jussieu, 75252 PARIS CEDEX 05
FRANCE