------- Comment #6 from binocs38149 at mypacks dot net 2010-07-30 19:01 ------- (In reply to comment #5) Apple seems to have fixed it a different way: http://www.opensource.apple.com/source/gcc/gcc-5659/gcc/cp/decl2.c { tree underlying_type = TREE_TYPE (DECL_NAME (decl)); int underlying_vis = type_visibility (underlying_type); if (underlying_vis == VISIBILITY_ANON /* APPLE LOCAL begin 6983171 */ || (TREE_CODE (underlying_type) == RECORD_TYPE && CLASSTYPE_VISIBILITY_SPECIFIED (underlying_type))) /* APPLE LOCAL end 6983171 */ constrain_visibility (decl, underlying_vis); else DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT; } I’m not sure which approach is better. -- binocs38149 at mypacks dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |binocs38149 at mypacks dot | |net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38002