From 8b9a887632d4599390ec48d3265ed284eb7a1005 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Sep 2010 20:01:05 +0200 Subject: Handle pragmas for fundamental types and template instantiations Use main type variant as a key in pragma map. --- odb/pragma.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'odb/pragma.cxx') diff --git a/odb/pragma.cxx b/odb/pragma.cxx index 771e33e..8226495 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -76,8 +76,13 @@ parse_scoped_name (tree& t, // Get the actual type if this is a TYPE_DECL. // - if (is_type && TREE_CODE (decl) == TYPE_DECL) - decl = TREE_TYPE (decl); + if (is_type) + { + if (TREE_CODE (decl) == TYPE_DECL) + decl = TREE_TYPE (decl); + + decl = TYPE_MAIN_VARIANT (decl); + } return decl; } -- cgit v1.1