Re: [C++] Protect call to copy_attributes_to_builtin (PR91505)

2019-08-21 Thread Richard Biener
On Wed, Aug 21, 2019 at 2:59 PM Richard Sandiford wrote: > > copy_attributes_to_builtin only handles BUILT_IN_NORMAL, but C++ was > calling it immediately after the: > > if (DECL_BUILT_IN_CLASS (newdecl) == BUILT_IN_NORMAL) > > block. The corresponding C code calls it inside the block i

[C++] Protect call to copy_attributes_to_builtin (PR91505)

2019-08-21 Thread Richard Sandiford
copy_attributes_to_builtin only handles BUILT_IN_NORMAL, but C++ was calling it immediately after the: if (DECL_BUILT_IN_CLASS (newdecl) == BUILT_IN_NORMAL) block. The corresponding C code calls it inside the block instead. Tested on x86_64-linux-gnu. OK to install? Richard 2019-0