From 6d007fda037331e7761d2a9ed3a2e435131daf7e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 11 Nov 2016 15:54:19 -0800 Subject: 3667 --- html/042name.cc.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'html/042name.cc.html') diff --git a/html/042name.cc.html b/html/042name.cc.html index d6133a59..f81abbd6 100644 --- a/html/042name.cc.html +++ b/html/042name.cc.html @@ -141,7 +141,7 @@ Name = Name_snapshot; } if (is_raw(x)) return true; if (is_literal(x)) return true; - // End is_disqualified Cases + // End is_disqualified Special-cases if (x.initialized) return true; return false; } @@ -158,7 +158,13 @@ type_ordinal skip_addresses(type_tree* typewhile (type && is_compound_type_starting_with(type, "address")) type = type->right; if (!type) return -1; // error handled elsewhere - return root_type(type)->value; + if (type->atom) return type->value; + const type_tree* base_type = type; + // Update base_type in skip_addresses + if (base_type->atom) + return base_type->value; + assert(base_type->left->atom); + return base_type->left->value; } int find_element_name(const type_ordinal t, const string& name, const string& recipe_name) { @@ -187,7 +193,7 @@ type_ordinal skip_addresses(type_tree* typebool is_special_name(const string& s) { if (s == "_") return true; if (s == "0") return true; - // End is_special_name Cases + // End is_special_name Special-cases return false; } -- cgit 1.4.1-2-gfad0