http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48798
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-28 12:43:04 UTC --- A fix seems *so* easy: just remove the error! if (cp_type_quals (base) != 0) { error ("base class %qT has cv qualifiers", base); base = TYPE_MAIN_VARIANT (base); } result = build_tree_list (access, base); if (virtual_p) TREE_TYPE (result) = integer_type_node;