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

Compiler enters infinite loop on inheritance by same type #77

Closed
ross2jd opened this issue Oct 5, 2015 · 1 comment
Closed

Compiler enters infinite loop on inheritance by same type #77

ross2jd opened this issue Oct 5, 2015 · 1 comment
Assignees
Milestone

Comments

@ross2jd
Copy link

ross2jd commented Oct 5, 2015

Consider the following incorrect model:

abstract LogicalBus : LogicalBus
    xor type
        CAN
        LIN

bus1 : LogicalBus

The compiler will output the following:

clafer -m choco debug.cfr 
All clafers: 5 | Abstract: 1 | Concrete: 4 | Reference: 0
Constraints: 0
Goals: 0

The Clafer process then hangs and does not complete. This type of inheritance should not be allowed and should throw an compile error.

@mantkiew mantkiew added this to the 0.4.3 milestone Oct 21, 2015
@mantkiew mantkiew self-assigned this Oct 21, 2015
@mantkiew
Copy link
Member

The same happens for a model:

abstract A : B
abstract B : A

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