Re: [C++ PATCH] Fix nsdmi handling for bitfields (PR c++/92732)

2019-12-02 Thread Jason Merrill
On 11/29/19 6:35 PM, Jakub Jelinek wrote: Hi! As the second testcase shows, we shouldn't be calling convert_for_* with TREE_TYPE (decl) for bitfields, we need DECL_BIT_FIELD_TYPE in that case instead (unlowered_expr_type doesn't work here, as that wants a COMPONENT_REF which we don't have). Boo

[C++ PATCH] Fix nsdmi handling for bitfields (PR c++/92732)

2019-11-29 Thread Jakub Jelinek
Hi! As the second testcase shows, we shouldn't be calling convert_for_* with TREE_TYPE (decl) for bitfields, we need DECL_BIT_FIELD_TYPE in that case instead (unlowered_expr_type doesn't work here, as that wants a COMPONENT_REF which we don't have). Bootstrapped/regtested on x86_64-linux and i686