OK.

On Mon, Feb 13, 2017 at 12:04 PM, Nathan Sidwell <nat...@acm.org> wrote:
> On 02/06/2017 02:19 PM, Jason Merrill wrote:
>
>>> AFAICT we cannot easily assert the condition anymore -- C++11 added the
>>> ability for instantiations involving local types.
>>
>>
>> That doesn't mean they have linkage, though; this type isn't subject
>> to the ODR, so need_assembler_name_p should be false.
>>
>> I notice that for some reason TREE_PUBLIC is set on the TYPE_DECL for
>> A we're trying to mangle, which might be where the problem comes in.
>
>
> This patch amends determine_visibility to use the template fn context for a
> local class instantiation.  With that TREE_PUBLIC gets cleared, and we no
> longer ICE.
>
> ok?
>
> nathan
>
> --
> Nathan Sidwell

Reply via email to