Probems of semantic analysis for dllimport / dllexport attributes

Hello!

Currently I'm working on semantic analysis for dllimport / dllexport
attributes
(Function Attributes - Using the GNU Compiler Collection (GCC)
and
Function Attributes - Using the GNU Compiler Collection (GCC)).
The main problem seen so far is that handling of decl attributes
occurs very early - before the function body (if any) will be
available. However, correct semantic checks of these attributes
require, that information whether we have declaration or definition
should be available. What is the best place for inserting such checks?