re PR c++/83919 (spurious -Wignored-qualifiers warning)
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Jan 2018 22:35:09 +0000 (23:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Jan 2018 22:35:09 +0000 (23:35 +0100)
commite6f97c3feec266355a80cdcb68a5885748454c39
tree20d26cc1b01d13bb50dade94d916dbfbaf442738
parentef61d1ab18889896fd1487ec5222e10a68a0e58d
re PR c++/83919 (spurious -Wignored-qualifiers warning)

PR c++/83919
* typeck.c (convert_for_assignment): Suppress warn_ignored_qualifiers
for direct enum init.
* decl.c (reshape_init): Likewise.

* g++.dg/cpp0x/pr83919.C: New test.

From-SVN: r256903
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr83919.C [new file with mode: 0644]