This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-finline-functions makes trouble


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]