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

issue assigning type when accessing struct value #133

Open
pattersonz opened this issue Nov 15, 2020 · 0 comments
Open

issue assigning type when accessing struct value #133

pattersonz opened this issue Nov 15, 2020 · 0 comments

Comments

@pattersonz
Copy link
Contributor

typedef struct wdb___
{
  int** stmt;
} wdb_t2;
int wdbi_checksum_range(wdb_t2 * wdb) {

  int * stmt = wdb->stmt[0];
  int	x = stmt[0];

  return 1;
}

the following code creates this error:

shifting RBRACK(])
reducing Subscript with 4 frames
TODO: typecheck Subscript
java.lang.IllegalStateException: trying to take cartesian product of empty multiverse
	at superc.cdesugarer.Multiverse.product(Multiverse.java:322)
	at superc.cdesugarer.CActions.action(CActions.java:5167)
	at superc.core.ForkMergeParser.reduce(ForkMergeParser.java:2479)
	at superc.core.ForkMergeParser.parse(ForkMergeParser.java:840)
	at superc.SugarC.parse(SugarC.java:532)
	at xtc.util.Tool.run(Tool.java:502)
	at superc.SugarC.main(SugarC.java:606)
1 error
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

1 participant