vhdlpp: Clone the initializing expression in signal declarations.
This commit is contained in:
parent
7f6f4157d1
commit
db77fafe72
|
|
@ -533,7 +533,7 @@ block_declarative_item
|
||||||
{ /* Save the signal declaration in the block_signals map. */
|
{ /* Save the signal declaration in the block_signals map. */
|
||||||
for (std::list<perm_string>::iterator cur = $2->begin()
|
for (std::list<perm_string>::iterator cur = $2->begin()
|
||||||
; cur != $2->end() ; ++cur) {
|
; cur != $2->end() ; ++cur) {
|
||||||
Signal*sig = new Signal(*cur, $4, $5);
|
Signal*sig = new Signal(*cur, $4, $5 ? $5->clone() : 0);
|
||||||
FILE_NAME(sig, @1);
|
FILE_NAME(sig, @1);
|
||||||
active_scope->bind_name(*cur, sig);
|
active_scope->bind_name(*cur, sig);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue