Menu

#397 Preprocessor IF does not work; and wrong line numbers in error messages  Edit

Preprocessor
pending
None
2025-11-30
2022-07-29
No

testsuite/tickets/397_pp_if.prl complains about multiple declaration of an identifier

 MODULE(x);
PROBLEM;
 #DEFINE version = 1 ;
#IF version = 1  ;
 DCL f(10) FIXED;  
#ELSE;
  DCL f(12) FIXED;
#FIN;
MODEND;

Error Message:
397_pp_if.prl:4:7: error: duplicate declaration: f
DCL f(12) FIXED;
^
397_pp_if.prl:3:7: note: previous declaration: was here
DCL f(10) FIXED;
^
compilation aborted with errors

by the way: The line numbers do not regard regard the preprocessor lines

Discussion

  • Marcel Schaible

    Marcel Schaible - 2024-01-14
    • status: open --> accepted
    • assigned_to: Marcel Schaible
     
  • Marcel Schaible

    Marcel Schaible - 2025-11-30
    • status: accepted --> pending
     
  • Marcel Schaible

    Marcel Schaible - 2025-11-30

    Should with the new preprocessor working now.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB