- Rob Shearman <robertshearman@gmail.com> Tue, 1 Jul 2008
widl: Check that the structure has been defined in check_remoting_args.
svn path=/trunk/; revision=37470
type->checked = TRUE;
if (is_struct(type->type))
type->checked = TRUE;
if (is_struct(type->type))
- fields = type->fields_or_args;
+ {
+ if (type->defined)
+ fields = type->fields_or_args;
+ else
+ error_loc_info(&var->loc_info, "undefined type declaration %s\n", type->name);
+ }
else if (is_union(type->type))
{
if (type->type == RPC_FC_ENCAPSULATED_UNION)
else if (is_union(type->type))
{
if (type->type == RPC_FC_ENCAPSULATED_UNION)
type->checked = TRUE;
if (is_struct(type->type))
type->checked = TRUE;
if (is_struct(type->type))
- fields = type->fields_or_args;
+ {
+ if (type->defined)
+ fields = type->fields_or_args;
+ else
+ error_loc_info(&var->loc_info, "undefined type declaration %s\n", type->name);
+ }
else if (is_union(type->type))
{
if (type->type == RPC_FC_ENCAPSULATED_UNION)
else if (is_union(type->type))
{
if (type->type == RPC_FC_ENCAPSULATED_UNION)