This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch c++]: PR/47213] New: ICE: SIGSEGV in determine_visibility (decl2.c:2076) with -fvisibility-ms-compat


On 01/08/2011 10:19 AM, Kai Tietz wrote:
           if (underlying_vis == VISIBILITY_ANON
-             || CLASSTYPE_VISIBILITY_SPECIFIED (underlying_type))
+             || (TYPE_NAME (underlying_type)
+                 &&  CLASSTYPE_VISIBILITY_SPECIFIED (underlying_type)))
             constrain_visibility (decl, underlying_vis);

This should check CLASS_TYPE_P rather than TYPE_NAME. And looking at this I realize that CLASSTYPE_VISIBILITY/_SPECIFIED should use TYPE_MAIN_DECL rather than TYPE_NAME.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]