[PATCH] PR c++/80544 strip cv-quals from cast results
Jonathan Wakely
jwakely@redhat.com
Thu May 25 10:54:00 GMT 2017
On 25/05/17 10:05 +0200, Andreas Schwab wrote:
>../../gcc/ada/gcc-interface/utils2.c: In function 'int compare_elmt_bitpos(const void*, const void*)':
>../../gcc/ada/gcc-interface/utils2.c:1937:73: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
> const constructor_elt * const elmt1 = (const constructor_elt * const) rt1;
> ^~~
>../../gcc/ada/gcc-interface/utils2.c:1938:73: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
> const constructor_elt * const elmt2 = (const constructor_elt * const) rt2;
I'm testing this obvious fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170525/acb67c8f/attachment.bin>
More information about the Gcc-patches
mailing list