Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed assertion when combining assignment of four or more variables #17

Open
cmlsharp opened this issue Sep 27, 2015 · 1 comment
Open

Comments

@cmlsharp
Copy link

The folowing input into interactive mode produces a failed assertion:

starting picoc v2.2
picoc> int a,b,c,d;
picoc> a=b=c=d=0;
picoc: lex.c:574: LexTokenise: Assertion `ReserveSpace >= MemUsed' failed.
[1]    6395 abort (core dumped)  picoc -i

However, doing the same action with two or three variables works fine e.g.

// This works fine
picoc> int a,b,c;
picoc> a=b=c=0;
@abhishek-kumar-7391
Copy link

starting picoc v2.2 beta r
picoc> int a,b,c,d;
picoc> a=b=c=d=10;
picoc>

jwurzer pushed a commit to jwurzer/picoc that referenced this issue Aug 24, 2019
fix parsing typedef outside of declaration, don't decrement loop counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants