diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 18:13:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 18:13:33 +0200 |
commit | 7e22a444bc360d1b74a25c6d508daea86ca8d5d2 (patch) | |
tree | dc8ee3c70e5fa8104101140ee46db3c52cc193e9 | |
parent | 30d6712637cea42e2019f400e1eb70d884185ce2 (diff) |
Fix bug in type printing during parsing (--trace crash)
-rw-r--r-- | odb/parser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index edb5876..e011663 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1786,7 +1786,7 @@ emit_type_name (tree type, bool direct) { tree t (TREE_TYPE (decl)); - if (same_type_p (type, t)) + if (t != 0 && same_type_p (type, t)) return IDENTIFIER_POINTER (DECL_NAME (decl)); } } |