Euphoria Ticket #681: Errors involving ? are being reported on the wrong line.

file x1.e:

  export atom x 

 
 
file x2.e:

   export atom x 

 
 

file t_c_redundant.e:

include std/unittest.e 
 
include x1.e 
include x2.e 
 
? x -- bad x is declared in two files 
test_equal( "fail forward redundancy check", 0, 1 ) 
test_report() 

The error is reported as being in the 'test_equal' line rather than the '? x'

Details

Type: Bug Report Severity: Normal Category: Error Reporting
Assigned To: mattlewis Status: Fixed Reported Release:
Fixed in SVN #: View VCS: none Milestone: 4.0.4

1. Comment by mattlewis Jul 24, 2011

See: hg:euphoria/rev/736263b340b0

changeset: 5071:736263b340b0 branch: 4.0 parent: 5068:0e5fee3d344c user: Matt Lewis date: Sun Jul 24 10:53:34 2011 -0400 files: docs/release/4.0.4.txt source/error.e source/fwdref.e source/global.e source/parser.e source/scanner.e source/symtab.e description:

  • fixed error reporting when we read past the end of a line, putback the token, and end up needing to report an error on the previous line
  • fixes ticket 681

2. Comment by mattlewis Jul 24, 2011

See: hg:euphoria/rev/ae9647052d94

changeset: 5072:ae9647052d94 parent: 5069:16e646a0c3fa parent: 5071:736263b340b0 user: Matt Lewis date: Sun Jul 24 10:58:32 2011 -0400 files: source/error.e source/fwdref.e source/global.e source/parser.e source/scanner.e source/symtab.e description:

  • merge fix for ticket 681 into the trunk

3. Comment by mattlewis Jul 24, 2011

See: hg:euphoria/rev/182e436a55cd

changeset: 5073:182e436a55cd branch: struct tag: tip parent: 5070:e0ceac086848 parent: 5072:ae9647052d94 user: Matt Lewis date: Sun Jul 24 11:03:35 2011 -0400 files: source/error.e source/fwdref.e source/global.e source/parser.e source/scanner.e source/symtab.e description:

  • merge fix for ticket 681 into struct branch

Search



Quick Links

User menu

Not signed in.

Misc Menu