PR# 16414 Wrong line numbers reported for C compilation failure with line_generation enabled
Problem Report Summary
Category: C Compilation
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:220.127.116.11) Gecko/2009042715 Firefox/3.0.10 Solaris 10 on SPARC
Synopsis: Wrong line numbers reported for C compilation failure with line_generation enabled
A C compilation failure with line_generation enabled in the configuration file produces some wrong line numbers (or maybe I am just very confused). Example below.
Freeze and C compile with attached class and config file. Output from finish_freezing is: Preparing C compilation Compiling C code in C1 "te704.c", line 14: syntax error before or at: ) "te704.c", line 14: warning: syntax error: empty declaration "/marten/test/classes/test.e", line 39: syntax error before or at: ) "/marten/test/classes/test.e", line 51: cannot recover from previous errors cc: acomp failed for big_file_C1_c.c Or perhaps line_generation is just broken. There is no line 39 in class TEST (it only has 16 lines). It seems that line 39 and line 51 refer to the C file te704.c. If that file was mentioned on the lines that list "/marten/test/classes/test.e", perhaps with the latter in parentheses, then it wouldn't be so confusing.