This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-finline-functions makes trouble
- To: egcs-bugs at cygnus dot com
- Subject: -finline-functions makes trouble
- From: Thorsten Bagdonat <t dot bagdonat at tu-bs dot de>
- Date: Mon, 03 May 1999 17:34:04 +0200
I have attached a C++ code which I'm currently working on.
If it is compiled using -finline-functions it won't work
correctly. Otherwise it does fine.
I figured out, that this has to have something to do with
the class 'vfield', especially the
double* vfield::operator () (int x,int y,int z) {
return data+x*ydim*zdim*3+y*zdim*3+z*3;
}
function. Whenever this is processed using -finline-functions
the program behaves strangely.
I have to say that I'm doing C programming for quite a while, but C++
only for some weeks, so maybe, there is something simple I overlooked.
Is this a bug?
Thorsten Bagdonat
Inst. f. Theoretical Physics
TU Braunschweig
D-38102 Braunschweig
Tel.: +49-(0)531-391-5187
email: t.bagdonat@tu-bs.de