mainlibbf - Support: sr #109485, Cannot use arrays in c-to-bf

 
 

sr #109485: Cannot use arrays in c-to-bf

Submitter:  None
Submitted:  Sun 01 Apr 2018 06:25:41 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 01 Apr 2018 06:25:41 AM UTC, original submission:  

I seem to be unable use arrays.

Declaring an array inside of a function like the following:
int main() {
  int arr[3];
  arr[1] = 1;
}

yields: fatal: libbf_c_to_bf.c, at line 1290 : Invalid declaration at line 4 of source file

If I move the declaration in the global scope, I get a different error:
int arr[3];
int main() {
  arr[1] = 1;
}

and the error: fatal: libbf_c_to_bf.c, at line 1127 : cond "builder.operandList != NULL && builder.operandList->next == NULL" failed at line 3 of source file

Is there a way to use arrays at all?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code