From 7e22a444bc360d1b74a25c6d508daea86ca8d5d2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Apr 2012 18:13:33 +0200 Subject: Fix bug in type printing during parsing (--trace crash) --- odb/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- cgit v1.1