diff options
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r-- | odb/pragma.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |