[lisaac-Bugs][311041] Compiler crash when using multi-line strings

lisaac-bugs at alioth.debian.org lisaac-bugs at alioth.debian.org
Fri Sep 4 14:05:51 UTC 2009


Bugs item #311041, was changed at 2008-09-04 12:27 by Mildred Ki'Lya
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413092&aid=311041&group_id=100200

>Status: Closed
Priority: 3
Submitted By: Xavier Oswald  (xaviero-guest)
Assigned to: Benoit Sonntag (sonntag-guest)
Summary: Compiler crash when using multi-line strings 
Target Milestone: None


Initial Comment:
The compiler crash when using multi-line strings and if there is ambiguity using the operators. For example:

"Test\n\
\multi " + n.to_string + " line\n\
\string\n".print;

makes the compiler crash

Compiler version: 0.13
This happened as well in earlier versions

Attached a test file

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

>Comment By: Mildred Ki'Lya (mildred-guest)
Date: 2009-09-04 16:05

Message:
Fixed:

Section Header

  + name := HELLO;

Section Public

  - main <-
  ( + n:INTEGER;

  "Test\n\
\multi " + n.to_string + " line\n\
\string\n".print;

  );



Depending pass: ..--SEMANTIC---------
Type `ABSTRACT_STRING' is invalid with `Strict VOID'.
Line 60 column 23 in STRING_BUFFER(/home/mildred/Projects/Lisaac/lisaac-compiler.git/lib/string/string_buffer.li):
  - Self:SELF '+' other:ABSTRACT_STRING :STRING_BUFFER <-
                       ^

Line 12 column 16 in HELLO(/tmp/hello.li):
\string\n".print;
                ^


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

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413092&aid=311041&group_id=100200



More information about the Lisaac-devel mailing list