diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-08 08:20:00 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-08 08:20:00 +0000 |
commit | 6a562b6d1a1076fc3e10f0d2e08a7d121be59f3c (patch) | |
tree | 88fe67ed2a86fa77666de5ca8cc22d4f476861d1 /TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp | |
parent | fea21ad8b5a919152e75900f45ffb2cf71499afc (diff) | |
download | ATCD-6a562b6d1a1076fc3e10f0d2e08a7d121be59f3c.tar.gz |
ChangeLogTag:Sun May 8 00:20:50 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp index 80ec1b2d8e3..5e5d47656a7 100644 --- a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp @@ -20,6 +20,7 @@ TAO::be_visitor_struct_typecode::be_visitor_struct_typecode ( be_visitor_context * ctx) : be_visitor_typecode_defn (ctx) , is_recursive_ (false) + , is_nested_ (false) { } @@ -48,7 +49,7 @@ TAO::be_visitor_struct_typecode::visit_structure (be_structure * node) -1); } - if (this->recursion_detect_) + if (this->recursion_detect_ || this->is_nested_) return 0; static bool const is_exception = false; @@ -77,6 +78,7 @@ TAO::be_visitor_struct_typecode::visit (AST_Structure * node, // Exceptions cannot be recursive. // ACE_ASSERT (!is_exception || (is_exception && !this->in_recursion_)); + this->is_nested_ = true; TAO_OutStream & os = *this->ctx_->stream (); |