[Bug c++/48798] CV-qualified base class erroneously forbidden

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 28 12:43:00 GMT 2011


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;



More information about the Gcc-bugs mailing list