[erlang-bugs] Parser bug with lists of records

Dima no-name afterforeverx@REDACTED
Mon Jul 25 15:21:48 CEST 2011


Hallo!
I have found some strange parser behavior with a list of records.
The bug has been verified on Erlang R14B03, on Ubuntu 11.04 Linux and Mac OS
X.

-------------------- Test Module

-module(bugtest).
-export([test/0]).

-record(rec, {x}).

test() ->
    [#rec{x = 1},
     #rec{x = 2}  % <-- missing comma
     #rec{x = 3}].

-------------------- Shell Output
Eshell V5.8.4  (abort with ^G)
1> c(bugtest).
{ok,bugtest}
2> bugtest:test().
[{rec,1},{rec,3}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20110725/faacd176/attachment.htm>


More information about the erlang-bugs mailing list