Fix for br942 - allow function declaration in VHDL architecture.

This commit is contained in:
Martin Whitaker 2013-12-11 22:59:20 +00:00
parent 819770a6c4
commit 9e25884f12
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 Stephen Williams (steve@icarus.com)
* Copyright (c) 2011-2013 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -97,6 +97,11 @@ int Architecture::emit(ostream&out, Entity*entity)
errors += emit_signals(out, entity, this);
errors += emit_variables(out, entity, this);
for (map<perm_string,Subprogram*>::const_iterator cur = cur_subprograms_.begin()
; cur != cur_subprograms_.end() ; ++ cur) {
errors += cur->second->emit_package(out);
}
for (list<Architecture::Statement*>::iterator cur = statements_.begin()
; cur != statements_.end() ; ++cur) {

View File

@ -496,6 +496,10 @@ block_declarative_item
| constant_declaration
| subprogram_declaration
| subprogram_body
| type_declaration
| use_clause_lib