Ticket #730 (closed bug: fixed)

Opened 13 years ago

Last modified 13 years ago

[bug] IMCC chokes on unicode strings as method call names

Reported by: pmichaud Owned by: chromatic
Priority: normal Milestone:
Component: imcc Version: 1.2.0
Severity: medium Keywords:
Cc: Language: perl6
Patch status: Platform:


IMCC doesn't appear to accept unicode strings as method call names. Here's an example:

$ cat x.pir
.sub 'main' :main
    $P0 = newclass 'Foo'
    $P1 = new $P0
    $S0 = unicode:"foo\x{b1}"

.namespace ['Foo']
.sub unicode:"foo\x{b1}" :method
    say "ok"

$ ./parrot x.pir
error:imcc:syntax error, unexpected USTRINGC ('unicode:"foo\x{b1}"')
	in file 'x.pir' line 6

As with TT #575 and #654, it's possible that all that is needed here is an update to IMCC.

This fix is needed for unicode method calls in Rakudo.


Change History

Changed 13 years ago by chromatic

  • owner set to chromatic

Fixed in r39417, with your example added as a test case to t/compilers/imcc/syn/pcc.t.

Changed 13 years ago by chromatic

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.