[ 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 21:28
Message generated for change (Settings changed) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=800002&group_id=12788
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Isaac Gouy (igouy)
>Assigned to: Arjan Boeijink (arjanb)
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)
----------------------------------------------------------------------
Comment By: Arjan Boeijink (arjanb)
Date: 2003-09-04 00:33
Message:
Logged In: YES
user_id=688815
This bug is now fixed in cvs and will be in the next
development version.
----------------------------------------------------------------------
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