aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-12-09 09:40:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-12-09 09:40:32 +0200
commitb38507fb1ecf82e5404a65a37e82c6164d482a98 (patch)
tree2ad1ea5b80351216cb4b34d98a0bf957f0d3f054
parent8b22f52b002668270af8706fca039b0c39a1680e (diff)
Fix bug in handling untyped, ref'ed substitution group elements
-rw-r--r--xsd-frontend/parser.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/xsd-frontend/parser.cxx b/xsd-frontend/parser.cxx
index 3f8200a..14187cc 100644
--- a/xsd-frontend/parser.cxx
+++ b/xsd-frontend/parser.cxx
@@ -558,19 +558,10 @@ namespace XSDFrontend
if (!m.annotated_p () && ref.annotated_p ())
s_.new_edge<Annotates> (ref.annotation (), m);
- // Type info.
+ // Type info. Can be missing for a substitution group member.
//
if (ref.typed_p ())
s_.new_edge<Belongs> (m, ref.type ());
- else
- {
- if (valid_)
- {
- wcerr << "ice: referenced instance '" << ns_name << "#"
- << uq_name << "' is not typed" << endl;
- abort ();
- }
- }
}
}
catch (NotNamespace const& ex)