public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
@ 2021-06-18 18:07 ` ppalka at gcc dot gnu.org
2022-01-21 13:44 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-06-18 18:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.1.0, 11.1.0, 8.4.0,
| |9.3.0
Last reconfirmed| |2021-06-18
Known to work| |7.5.0
Summary|Bogus "ignored qualifiers" |[9/10/11/12 Regression]
|warning on const-qualified |Bogus "ignored qualifiers"
|pointer-to-member-function |warning on const-qualified
|objects |pointer-to-member-function
| |objects
Ever confirmed|0 |1
CC| |ppalka at gcc dot gnu.org
Target Milestone|--- |9.5
Status|UNCONFIRMED |NEW
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed. We started to emit the bogus warning after r8-901.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 18:07 ` [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects ppalka at gcc dot gnu.org
@ 2022-01-21 13:44 ` rguenth at gcc dot gnu.org
2022-01-28 16:21 ` ppalka at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-21 13:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 18:07 ` [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects ppalka at gcc dot gnu.org
2022-01-21 13:44 ` rguenth at gcc dot gnu.org
@ 2022-01-28 16:21 ` ppalka at gcc dot gnu.org
2022-01-28 20:41 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-01-28 16:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2022-01-28 16:21 ` ppalka at gcc dot gnu.org
@ 2022-01-28 20:41 ` cvs-commit at gcc dot gnu.org
2022-01-28 20:41 ` [Bug c++/92752] [9/10/11 " ppalka at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-28 20:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:e971990cbda091b4caf5e1a5bded5121068934e4
commit r12-6926-ge971990cbda091b4caf5e1a5bded5121068934e4
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Jan 28 15:41:15 2022 -0500
c++: bogus warning with value init of const pmf [PR92752]
Here we're emitting a -Wignored-qualifiers warning for an intermediate
compiler-generated cast of nullptr to 'method-type* const' as part of
value initialization of a const pmf. This patch suppresses the warning
by instead casting to the corresponding unqualified type.
PR c++/92752
gcc/cp/ChangeLog:
* typeck.cc (build_ptrmemfunc): Cast a nullptr constant to the
unqualified pointer type not the qualified one.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wignored-qualifiers2.C: New test.
Co-authored-by: Jason Merrill <jason@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [9/10/11 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2022-01-28 20:41 ` cvs-commit at gcc dot gnu.org
@ 2022-01-28 20:41 ` ppalka at gcc dot gnu.org
2022-05-27 9:41 ` [Bug c++/92752] [10/11 " rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-01-28 20:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[9/10/11/12 Regression] |[9/10/11 Regression] Bogus
|Bogus "ignored qualifiers" |"ignored qualifiers"
|warning on const-qualified |warning on const-qualified
|pointer-to-member-function |pointer-to-member-function
|objects |objects
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 12 so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [10/11 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2022-01-28 20:41 ` [Bug c++/92752] [9/10/11 " ppalka at gcc dot gnu.org
@ 2022-05-27 9:41 ` rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [10/11 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2022-05-27 9:41 ` [Bug c++/92752] [10/11 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-05-22 3:11 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [10/11 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-05-22 3:11 ` cvs-commit at gcc dot gnu.org
2023-06-30 4:04 ` [Bug c++/92752] [10 " cvs-commit at gcc dot gnu.org
2023-07-07 8:43 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-22 3:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Patrick Palka
<ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:d0a586ba9d9bd44d5e4d523ed2326bd6639493d8
commit r11-10799-gd0a586ba9d9bd44d5e4d523ed2326bd6639493d8
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Jan 28 15:41:15 2022 -0500
c++: bogus warning with value init of const pmf [PR92752]
Here we're emitting a -Wignored-qualifiers warning for an intermediate
compiler-generated cast of nullptr to 'method-type* const' as part of
value initialization of a const pmf. This patch suppresses the warning
by instead casting to the corresponding unqualified type.
PR c++/92752
gcc/cp/ChangeLog:
* typeck.c (build_ptrmemfunc): Cast a nullptr constant to the
unqualified pointer type not the qualified one.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wignored-qualifiers2.C: New test.
Co-authored-by: Jason Merrill <jason@redhat.com>
(cherry picked from commit e971990cbda091b4caf5e1a5bded5121068934e4)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [10 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2023-05-22 3:11 ` cvs-commit at gcc dot gnu.org
@ 2023-06-30 4:04 ` cvs-commit at gcc dot gnu.org
2023-07-07 8:43 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-30 4:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Patrick Palka
<ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:8c12c47d0c5c40df6e5eeb8625d4708c8a42dbe0
commit r10-11483-g8c12c47d0c5c40df6e5eeb8625d4708c8a42dbe0
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Jan 28 15:41:15 2022 -0500
c++: bogus warning with value init of const pmf [PR92752]
Here we're emitting a -Wignored-qualifiers warning for an intermediate
compiler-generated cast of nullptr to 'method-type* const' as part of
value initialization of a const pmf. This patch suppresses the warning
by instead casting to the corresponding unqualified type.
PR c++/92752
gcc/cp/ChangeLog:
* typeck.c (build_ptrmemfunc): Cast a nullptr constant to the
unqualified pointer type not the qualified one.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wignored-qualifiers2.C: New test.
Co-authored-by: Jason Merrill <jason@redhat.com>
(cherry picked from commit e971990cbda091b4caf5e1a5bded5121068934e4)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/92752] [10 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2023-06-30 4:04 ` [Bug c++/92752] [10 " cvs-commit at gcc dot gnu.org
@ 2023-07-07 8:43 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 8:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |10.5.0, 11.4.0
Status|ASSIGNED |RESOLVED
Known to fail| |10.4.0
Resolution|--- |FIXED
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-07-07 8:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92752-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 18:07 ` [Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects ppalka at gcc dot gnu.org
2022-01-21 13:44 ` rguenth at gcc dot gnu.org
2022-01-28 16:21 ` ppalka at gcc dot gnu.org
2022-01-28 20:41 ` cvs-commit at gcc dot gnu.org
2022-01-28 20:41 ` [Bug c++/92752] [9/10/11 " ppalka at gcc dot gnu.org
2022-05-27 9:41 ` [Bug c++/92752] [10/11 " rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-05-22 3:11 ` cvs-commit at gcc dot gnu.org
2023-06-30 4:04 ` [Bug c++/92752] [10 " cvs-commit at gcc dot gnu.org
2023-07-07 8:43 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).