http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58162
James Dennett <james.dennett at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |james.dennett at gmail dot com --- Comment #1 from James Dennett <james.dennett at gmail dot com> --- Jason pointed out to me that cv_unqualified() is more appropriate than TYPE_MAIN_VARIANT(), and I see that we might want to do the if (!CLASS_TYPE_P (type) && cv_qualified_p (type)) type = cv_unqualified (type); dance to avoid needless work for other types.