[Bro-Dev] #660: Initializing a table with a record as an index does not work
Bro Tracker
bro at tracker.bro-ids.org
Wed Dec 12 13:09:31 PST 2012
#660: Initializing a table with a record as an index does not work
----------------------+----------------------
Reporter: amannb | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone:
Component: Bro | Version:
Resolution: | Keywords: language
----------------------+----------------------
Comment (by jsiwek):
In [f6d5da423cccc5585d191a3d48745977659eca79/bro]:
{{{
#!CommitTicketReference repository="bro"
revision="f6d5da423cccc5585d191a3d48745977659eca79"
Fix record constructors in table initializer indices. Addresses #660.
For an index expression list, ListExpr::InitVal() passed the TypeList
to Expr::InitVal() for each expression element in the list instead of
the type for that element. This made RecordConstructorExpr::InitVal()
complain since it expects a RecordType and not a TypeList with a
RecordType element as an argument. In most other cases, Expr::InitVal()
worked because check_and_promote() "flattens" the list to a single type.
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/660#comment:4>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list