[patch c++]: PR/47213] New: ICE: SIGSEGV in determine_visibility (decl2.c:2076) with -fvisibility-ms-compat
Jason Merrill
jason@redhat.com
Sun Jan 9 23:01:00 GMT 2011
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
More information about the Gcc-patches
mailing list