Re: [C++ PATCH] Fix ICE with #pragma weak and structured bindings (PR c++/85208)

2018-04-05 Thread Jason Merrill
OK. On Thu, Apr 5, 2018 at 5:06 PM, Jakub Jelinek wrote: > Hi! > > We can't call maybe_apply_pragma_weak for structured binding decls > at start_decl time, as that is too early, we don't have DECL_ASSEMBLER_NAME > computed yet for them and because we don't have the corresponding decls > around ye

[C++ PATCH] Fix ICE with #pragma weak and structured bindings (PR c++/85208)

2018-04-05 Thread Jakub Jelinek
Hi! We can't call maybe_apply_pragma_weak for structured binding decls at start_decl time, as that is too early, we don't have DECL_ASSEMBLER_NAME computed yet for them and because we don't have the corresponding decls around yet, we can't even compute it. This patch defers the maybe_apply_pragma