Opened 14 years ago

Last modified 14 years ago

#1398 closed defect (fixed)

Fix expEqual for string literals

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

Description

{{{class A

constant Boolean b = "ab\n" == "ab

";
end A;}}}

This gives false because the elaborated expression has not been escaped or unescapted to/from C string yet. This should probably be done in elabExp since it may not be done in Absyn (since you then mess with the unparsing).
This has issues for expEqual and ceval of string relations.

Change History (1)

comment:1 by Martin Sjölund, 14 years ago

I fixed this in trunk some time ago :)

Note: See TracTickets for help on using tickets.