Code Monkey home page Code Monkey logo

Comments (8)

shd01x avatar shd01x commented on August 16, 2024

Should have said, version 3.3.09 running in the TASTE VM.

from asn1scc.

usr3-1415 avatar usr3-1415 commented on August 16, 2024

Hi,
Bug was fixed in my latest commit

from asn1scc.

maxime-esa avatar maxime-esa commented on August 16, 2024

@shd01x : I have compiled the latest version (3.3.18) and updated it in the VM. If you run Update-TASTE.sh this new version will be installed and you can try again

Thanks George for the fix

from asn1scc.

shd01x avatar shd01x commented on August 16, 2024

@maxime-esa : Thanks very much, this works now :)

from asn1scc.

shd01x avatar shd01x commented on August 16, 2024

Ah. I spoke too soon.

My original test case passes, but if I add a third module the problem reappears:

----------------------------------------------------------------------------------------
-- Test module
----------------------------------------------------------------------------------------
Test-Dataview DEFINITIONS ::=
BEGIN

IMPORTS 
  T-SecondModule-Type1 FROM SecondModule-Dataview;

T-Test ::= SEQUENCE {
  type1Thing            T-SecondModule-Type1{INTEGER}
}  

END

----------------------------------------------------------------------------------------
-- Second module
----------------------------------------------------------------------------------------

SecondModule-Dataview DEFINITIONS ::=
BEGIN

IMPORTS
  T-ThirdModule-Type2  FROM ThirdModule-Dataview;

T-SecondModule-Type3 ::= INTEGER
T-SecondModule-Type4 ::= INTEGER

T-SecondModule-Type1{TypeParameter} ::= SEQUENCE {
  val1                  T-SecondModule-Type3  ,
  val2                  T-ThirdModule-Type2  ,
  val3                  T-SecondModule-Type4 ,
  value                 TypeParameter
}  

END

----------------------------------------------------------------------------------------
-- Third module
----------------------------------------------------------------------------------------

ThirdModule-Dataview DEFINITIONS ::=
BEGIN

T-ThirdModule-Type2 ::= INTEGER(0 .. 33)

END

Output of asn1scc:

assert@tastevm:~/asn1scc_bug$ asn1.exe test.asn second.asn third.asn
Duplicate definition: T-SecondModule-Type3

from asn1scc.

usr3-1415 avatar usr3-1415 commented on August 16, 2024

Please try again the latest version 3.19

from asn1scc.

maxime-esa avatar maxime-esa commented on August 16, 2024

Thanks, compiled in the TASTE VM, run again Update-TASTE.sh to get this new version

from asn1scc.

shd01x avatar shd01x commented on August 16, 2024

Awesome! Both the above test cases, and my mad ASN.1 model, now compile perfectly.

Thanks again guys for your very quick work on this. Will buy the beers next time I'm at ESTEC :)

from asn1scc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.