Menu

#3383 Error message line number off by 1

closed-fixed
None
other
5
2022-08-30
2022-05-10
No

Trying to add this test to valdiag:

/* bug-3031.c

   Initialization of file-scope variables by an expression that contains function calls resulted in a segfault in codegen.
 */

#ifdef TEST1
float f(int);

int i;
float d = f(i); /* ERROR */

#endif

It fails since the error message for some ports is on the following line.

Related

Bugs: #3031

Discussion

  • Philipp Klaus Krause

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Trying to add this test to valdiag:
    
    -~~~~/
    -* bug-3031.c
    +~~~~
    +/* bug-3031.c
    
        Initialization of file-scope variables by an expression that contains function calls resulted in a segfault in codegen.
      */
    
     
  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause --> nobody
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13679].

     

    Related

    Commit: [r13679]


Log in to post a comment.

MongoDB Logo MongoDB