PR# 16414 Wrong line numbers reported for C compilation failure with line_generation enabled
Problem Report Summary
Submitter: prestoat2000
Category: C Compilation
Priority: Medium
Date: 2009/11/06
Class: Bug
Severity: Serious
Number: 16414
Release: 6.5.81438
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.0.10) Gecko/2009042715 Firefox/3.0.10
Solaris 10 on SPARC
Synopsis: Wrong line numbers reported for C compilation failure with line_generation enabled
Description
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.
To Reproduce
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.