Re: [C/C++ PATCH] Fix mode attribute handling (PR c++/79641)

2017-02-21 Thread Jeff Law
On 02/21/2017 09:40 AM, Jakub Jelinek wrote: Hi! On the following testcase, we have TYPE_READONLY integer type before handling the mode attribute and transform it into a signed char type (without TYPE_READONLY), which causes ICE in the FE, because it isn't const anymore. Fixed by making sure we

[C/C++ PATCH] Fix mode attribute handling (PR c++/79641)

2017-02-21 Thread Jakub Jelinek
Hi! On the following testcase, we have TYPE_READONLY integer type before handling the mode attribute and transform it into a signed char type (without TYPE_READONLY), which causes ICE in the FE, because it isn't const anymore. Fixed by making sure we have the same quals as before applying the mod