[ nice-Bugs-800002 ] compiler error - dispatch by int comparison

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #800002, was opened at 2003-09-03 12:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=800002&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
Summary: compiler error - dispatch by int comparison

Initial Comment:
int g(int m, int n);

g(m, n<0) = 1;

g(m, n>=0) = 1;





Nice compiler version 0.9.2 (build 2003.09.02, 21:54:27 

UTC)





Stack trace:

java.lang.NullPointerException

        at bossa.syntax.Pattern.matchesValue

(Pattern.java:453)

        at bossa.link.Alternative.matchesValuePart

(Alternative.java:122)

        at bossa.link.Dispatch.testValues

(Dispatch.java:301)

        at bossa.link.Dispatch.test(Dispatch.java:186)

        at bossa.link.Dispatch.test(Dispatch.java:90)

        at bossa.link.Dispatch.test(Dispatch.java:75)

        at bossa.modules.Package.link(Package.java:339)

        at mlsub.compilation.fun.lambda23

(~/Nice/src/mlsub/compilation:47)

        at mlsub.compilation.fun.apply1

(~/Nice/src/mlsub/compilation)

        at gnu.expr.ModuleMethod.apply1

(ModuleMethod.java:89)

        at nice.lang.fun.foreach

(~/Nice/stdlib/nice/lang:116)

        at nice.lang.dispatch.foreach

(~/Nice/classes/nice/lang)

        at mlsub.compilation.fun.compileComponent

(~/Nice/src/mlsub/compilation:47)

        at mlsub.compilation.fun$make.lambda16(Unknown 

Source)

        at mlsub.compilation.fun$make.apply1(Unknown 

Source)

        at gnu.expr.ModuleMethod.apply1

(ModuleMethod.java:89)

        at nice.lang.fun.foreach

(~/Nice/stdlib/nice/lang:116)

        at nice.lang.dispatch.foreach

(~/Nice/classes/nice/lang)

        at mlsub.compilation.fun.make

(~/Nice/src/mlsub/compilation:60)

        at nice.tools.compiler.fun.compile

(~/Nice/src/nice/tools/compiler:40)

        at nice.tools.compiler.console.fun.compile

(~/Nice/src/nice/tools/compiler/console:168)

        at nice.tools.compiler.console.fun.main

(~/Nice/src/nice/tools/compiler/console:184)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=800002&group_id=12788


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.