Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Detect when typedefs form a cycle #116

Closed
litherum opened this issue Oct 13, 2018 · 2 comments
Closed

Detect when typedefs form a cycle #116

litherum opened this issue Oct 13, 2018 · 2 comments

Comments

@litherum
Copy link
Contributor

Migrated from https://bugs.webkit.org/show_bug.cgi?id=186768:

At 2018-06-18T16:01:16Z, rmorisset@apple.com wrote:

typedef a = b;
typedef b = a;

currently hangs the interpreter until it has a stack overflow.
Ideally it should be detected, and give a nicer error message.

@litherum
Copy link
Contributor Author

At 2018-08-30T00:17:54Z, mmaxfield@apple.com wrote:
Other types too: enums, arrays, structs, etc. (I don't know how they could be circular, but we should prove that it isn't possible using any type)

@litherum
Copy link
Contributor Author

At 2018-08-30T00:18:02Z, mmaxfield@apple.com wrote:
*** Bug 189024 has been marked as a duplicate of this bug. ***

@litherum litherum changed the title [WSL] The interpreter should detect when typedefs form a cycle The interpreter should detect when typedefs form a cycle Oct 18, 2018
@litherum litherum changed the title The interpreter should detect when typedefs form a cycle Detect when typedefs form a cycle Oct 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant