diff options
author | Jason Merrill <jason@redhat.com> | 2017-11-30 12:43:08 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-11-30 12:43:08 -0500 |
commit | 2d11897a77255a521a6c420739266d3bec0c76fe (patch) | |
tree | 4efa3943c6312f7a05b8777094430ec07cb641f6 /gcc/cp | |
parent | d44e1abee559935caa783b1987573032a438da3c (diff) | |
download | gcc-2d11897a77255a521a6c420739266d3bec0c76fe.zip gcc-2d11897a77255a521a6c420739266d3bec0c76fe.tar.gz gcc-2d11897a77255a521a6c420739266d3bec0c76fe.tar.bz2 |
PR c++/82219 - bogus -Wignored-qualifiers with template
* pt.c (tsubst_copy_and_build) [STATIC_CAST_EXPR]: Suppress
-Wignored-qualifiers.
From-SVN: r255279
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/pt.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e6851d3..bb0e2bb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2017-11-30 Jason Merrill <jason@redhat.com> + + PR c++/82219 - bogus -Wignored-qualifiers with template + * pt.c (tsubst_copy_and_build) [STATIC_CAST_EXPR]: Suppress + -Wignored-qualifiers. + 2017-11-29 David Malcolm <dmalcolm@redhat.com> * parser.c (cp_parser_unary_expression): Generate a location for diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 7e2f774..500ac0c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -17180,6 +17180,7 @@ tsubst_copy_and_build (tree t, op = RECUR (TREE_OPERAND (t, 0)); warning_sentinel s(warn_useless_cast); + warning_sentinel s2(warn_ignored_qualifiers); switch (TREE_CODE (t)) { case CAST_EXPR: |