diff --git a/parse.y b/parse.y index 98f6ca009..dc4938e7d 100644 --- a/parse.y +++ b/parse.y @@ -7007,7 +7007,7 @@ udp_port_decl $$ = tmp; delete[]$2; } - | K_reg K_output IDENTIFIER ';' + | K_output K_reg IDENTIFIER ';' { perm_string pname = lex_strings.make($3); PWire*pp = new PWire(pname, NetNet::REG, NetNet::POUTPUT, IVL_VT_LOGIC); vector*tmp = new std::vector(1);