I received the following error:
gpc -Wall --executable-file-name --automake --unit-path=/home/wstomv/projects/yahtzee/units --unit-destination-path=/home/wstomv/projects/yahtzee/units testdriver.p testdriver.p: In function `Testgamestatistics': testdriver.p:39: Internal compiler error in `contains_file_p', at util.c:1542 Please submit a full bug report. See URL:http://www.gnu.org/software/gcc/faq.html#bugreport for instructions. make: *** [testdriver] Error 1
The URL refers to a page that has moved and is for gcc, not gpc. What is the thing to do? The program that causes this is not so small (thousands of lines), and I don't feel like locating the error unless it is really helpful.
By the way, I use
gpc version 20001122, based on 2.95.2 19991024 (release)
Greetings,
Tom
Tom Verhoeff wrote:
Please submit a full bug report. See URL:http://www.gnu.org/software/gcc/faq.html#bugreport for instructions. make: *** [testdriver] Error 1
The URL refers to a page that has moved and is for gcc, not gpc.
I think this address should be changed to point to this list. Can you do this please, Peter?
It may have been the case that I had an outdated .gpi file. After removing it, and compiling again the internal compiler error disappeared.
This may well be the case. It is one of my main annoyances with GPC as well...
I am still confused that the compiler refers to Testgamestatistics as a function, because it actually is a procedure.
This might be because the code that emits the message comes from GCC and in C procedures are called functions. I don't know how easy it is to change this to the Pascal notations...
Frank
Hello,
Frank Heckenbach wrote:
The URL refers to a page that has moved and is for gcc, not gpc.
I think this address should be changed to point to this list. Can you do this please, Peter?
Done.
I am still confused that the compiler refers to Testgamestatistics as a function, because it actually is a procedure.
This might be because the code that emits the message comes from GCC and in C procedures are called functions. I don't know how easy it is to change this to the Pascal notations...
There is a hook in GCC (in `toplev.c' search for `print_error_function') serving exactly this purpose.
[...]
Okay - GPC now distinguishes between procedures, functions, constructors, destructors, and operators in error messages.
Testing,
Peter