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]

const array in a class


Greetings!

First of all, scuse me for my bad english and congratulations for gcc: I think
it's the best compiler. My name is Sebastian Gurin, and I am an Uruguayan
student. 

I think I have found something wrong in gcc with a C++ code I'm trying to 
compile. I would like to apologize to you from now, because :

  -I'm only a student, learning C++, and perhaps this is not a real bug, and
could be only my error. 
  -I have no information about gcc bugs corrections, so perhaps you have 
already healed this error and this message is useless :-(
  -Like you will see, my version of gcc it's not so updated, then, again, 
perhaps you have already healed this error and this message is useless...
  -I don't have very deep knowledge about C++ and classes, (in fact, I am
learning), and then perhaps this code is invalid or have some syntax error. 

Well, the code is very simple: The class "clase" have a const array that I 
want to inicialize with the size "size" in the constructor. It's very 
probably that the way I do this in the code it's wrong, but that's not the 
point. My point is that gcc have no reasons to react with such a message. The 
program can simply say: "your code is wrong", but no "Internal compiler error 
". Can you understand me ?

Well, here you have "what you need" ;-) :

  -gcc version 2.95.3 19991030 (prerelease)
  -System type: 586-mandrake-linux
  -The complete command line that triggers the bug: "g++ myfile.cpp"
  -The compiler output:
myfile.cpp: In function `int main()':
myfile.cpp:11: Internal compiler error in `find_function_data', at 
function.c:542
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

  -I am working with GNU/Linux Mandrake 7.2, Linux 2.2.17-21mdk. My gcc came 
as a rpm package with the distribution. 

Well, all the files (the source code, the preprocessed file, the preprocessor
output, etc) are in the attached tar.gz package. 

Well, good bye! and thanks for GNU project C and C++ Compiler. 

PD_ Could you please tell me if this is a real bug and if you are working 
around it? Thanks

-- 
Cancerbero <anon@adinet.com.uy>
Usuario Registrado de LINUX #184713
GnuPG Public Key: http://cancerbero.8m.com/myGPGkey.txt

Multitarea, posibilidad de que dos bugs ocurran simultaneamente. 
 


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