Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 115
    • Issues 115
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.core
  • Issues
  • #573

Infinite recursion caused by multiple ASN.1 parameterized type instances

Summary

Multiple instances of the same ASN.1 parameterized type in a type hierarchy cause an infinite recursion during semantic analysis.

ASN.1 code to reproduce

A DEFINITIONS

AUTOMATIC TAGS

::=

BEGIN

Uint8 ::= INTEGER (0..255)

ScmsPdu ::= SEQUENCE { version Uint8 (2), content CHOICE { aca-ra AcaRaInterfacePdu, int INTEGER, ... } }

ScmsPdu-Scoped {Pdu} ::= ScmsPdu (WITH COMPONENTS { ..., content (CONSTRAINED BY { Pdu }) })

AcaRaInterfacePdu ::= CHOICE { a Again, ... }

Again ::= ScmsPdu-Scoped { INTEGER }

END

What is the current bug behavior?

The compiler crashes due to an infinite recursion.

What is the expected correct behavior?

Successful semantic analysis.

Relevant logs and/or screenshots

Possible fixes

Titan version

8.0.0

Platform details (OS type and version)

Any.

Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent