[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 --- Comment #4 from paolo at gcc dot gnu.org --- Author: paolo Date: Thu Feb 8 18:54:39 2018 New Revision: 257502 URL: https://gcc.gnu.org/viewcvs?rev=257502=gcc=rev Log: /cp 2018-02-08 Paolo CarliniPR c++/83806 * typeck.c (decay_conversion): Use mark_rvalue_use for the special case of nullptr too. /testsuite 2018-02-08 Paolo Carlini PR c++/83806 * g++.dg/warn/Wunused-parm-11.C: New. Added: trunk/gcc/testsuite/g++.dg/warn/Wunused-parm-11.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog
[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED CC|paolo.carlini at oracle dot com| Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com --- Comment #3 from Paolo Carlini --- Seems doable.
[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2
[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 Paolo Carlini changed: What|Removed |Added CC||jakub at gcc dot gnu.org, ||paolo.carlini at oracle dot com --- Comment #2 from Paolo Carlini --- I'm adding in CC Jakub too.
[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 Richard Biener changed: What|Removed |Added Target Milestone|--- |6.5
[Bug c++/83806] [6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83806 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2018-01-13 CC||jason at gcc dot gnu.org, ||msebor at gcc dot gnu.org Known to work||5.4.0 Summary|Spurious|[6/7/8 Regression] Spurious |unused-but-set-parameter|-Wunused-but-set-parameter |with nullptr|with nullptr Ever confirmed|0 |1 Known to fail||6.4.0, 7.2.0, 8.0 --- Comment #1 from Martin Sebor --- Confirmed. Introduced by r232436 (gcc 6.0.0): r232436 | jason | 2016-01-15 10:57:07 -0500 (Fri, 15 Jan 2016) | 6 lines PR c++/69257 * typeck.c (decay_conversion): Don't call mark_rvalue_use for array/function-to-pointer conversion. Call complete_type_or_maybe_complain for lvalue-to-rvalue conversion. * call.c (convert_like_real): Print call context if decay_conversion errors.