* [Bug c++/95719] [11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
@ 2020-06-17 9:40 ` marxin at gcc dot gnu.org
2020-06-23 12:23 ` mpolacek at gcc dot gnu.org
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-17 9:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Known to fail| |11.0
Target Milestone|--- |11.0
Keywords| |ice-on-valid-code
Summary|SEGV in tree_check |[11 Regression] ICE in
| |lookup_vfn_in_binfo at
| |gcc/cp/class.c:2459 since
| |r11-954-g0ddb93ce77374004
Last reconfirmed| |2020-06-17
Status|UNCONFIRMED |NEW
Known to work| |10.1.0
Ever confirmed|0 |1
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-954-g0ddb93ce77374004.
Thank you for the report.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
2020-06-17 9:40 ` [Bug c++/95719] [11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004 marxin at gcc dot gnu.org
@ 2020-06-23 12:23 ` mpolacek at gcc dot gnu.org
2020-06-23 12:23 ` [Bug c++/95719] [10/11 " mpolacek at gcc dot gnu.org
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-06-23 12:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doko at debian dot org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 95838 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
2020-06-17 9:40 ` [Bug c++/95719] [11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004 marxin at gcc dot gnu.org
2020-06-23 12:23 ` mpolacek at gcc dot gnu.org
@ 2020-06-23 12:23 ` mpolacek at gcc dot gnu.org
2020-06-24 0:45 ` jason at gcc dot gnu.org
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-06-23 12:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Summary|[11 Regression] ICE in |[10/11 Regression] ICE in
|lookup_vfn_in_binfo at |lookup_vfn_in_binfo at
|gcc/cp/class.c:2459 since |gcc/cp/class.c:2459 since
|r11-954-g0ddb93ce77374004 |r11-954-g0ddb93ce77374004
Target Milestone|11.0 |10.2
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (2 preceding siblings ...)
2020-06-23 12:23 ` [Bug c++/95719] [10/11 " mpolacek at gcc dot gnu.org
@ 2020-06-24 0:45 ` jason at gcc dot gnu.org
2020-06-24 19:59 ` cvs-commit at gcc dot gnu.org
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu.org @ 2020-06-24 0:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (3 preceding siblings ...)
2020-06-24 0:45 ` jason at gcc dot gnu.org
@ 2020-06-24 19:59 ` cvs-commit at gcc dot gnu.org
2020-06-24 20:02 ` cvs-commit at gcc dot gnu.org
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-24 19:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:7d6baf68fe22b6ef5b1d6fabbef97c0e1b4d7abf
commit r11-1637-g7d6baf68fe22b6ef5b1d6fabbef97c0e1b4d7abf
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 23 21:25:21 2020 -0400
c++: Fix ICE with using and virtual function. [PR95719]
conversion_path points to the base where we found the using-declaration,
not
where the function is actually a member; look up the actual base. And then
maybe look back to the derived class if the base is primary.
gcc/cp/ChangeLog:
PR c++/95719
* call.c (build_over_call): Look up the overrider in base_binfo.
* class.c (lookup_vfn_in_binfo): Look through BINFO_PRIMARY_P.
gcc/testsuite/ChangeLog:
PR c++/95719
* g++.dg/tree-ssa/final4.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (4 preceding siblings ...)
2020-06-24 19:59 ` cvs-commit at gcc dot gnu.org
@ 2020-06-24 20:02 ` cvs-commit at gcc dot gnu.org
2020-06-24 20:12 ` jason at gcc dot gnu.org
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-24 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:554eb7d2e1ef5660d6a8e1c12ee1d751a70bbf31
commit r10-8363-g554eb7d2e1ef5660d6a8e1c12ee1d751a70bbf31
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 23 21:25:21 2020 -0400
c++: Fix ICE with using and virtual function. [PR95719]
conversion_path points to the base where we found the using-declaration,
not
where the function is actually a member; look up the actual base. And then
maybe look back to the derived class if the base is primary.
gcc/cp/ChangeLog:
PR c++/95719
* call.c (build_over_call): Look up the overrider in base_binfo.
* class.c (lookup_vfn_in_binfo): Look through BINFO_PRIMARY_P.
gcc/testsuite/ChangeLog:
PR c++/95719
* g++.dg/tree-ssa/final4.C: New test.
(cherry picked from commit 7d6baf68fe22b6ef5b1d6fabbef97c0e1b4d7abf)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (5 preceding siblings ...)
2020-06-24 20:02 ` cvs-commit at gcc dot gnu.org
@ 2020-06-24 20:12 ` jason at gcc dot gnu.org
2021-02-05 14:56 ` ht990332 at gmx dot com
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu.org @ 2020-06-24 20:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 10.2/11.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (6 preceding siblings ...)
2020-06-24 20:12 ` jason at gcc dot gnu.org
@ 2021-02-05 14:56 ` ht990332 at gmx dot com
2021-02-08 8:59 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: ht990332 at gmx dot com @ 2021-02-05 14:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Hussam Al-Tayeb <ht990332 at gmx dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ht990332 at gmx dot com
--- Comment #6 from Hussam Al-Tayeb <ht990332 at gmx dot com> ---
gcc-9 branch also has a backport of
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=0ddb93ce77374004 which caused
the regression.
Can the fix for this bug be backported to the gcc-9 branch please?
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (7 preceding siblings ...)
2021-02-05 14:56 ` ht990332 at gmx dot com
@ 2021-02-08 8:59 ` marxin at gcc dot gnu.org
2021-04-30 11:46 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-08 8:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 98232 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (8 preceding siblings ...)
2021-02-08 8:59 ` marxin at gcc dot gnu.org
@ 2021-04-30 11:46 ` jakub at gcc dot gnu.org
2021-04-30 12:55 ` cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-30 11:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And to 8 branch too.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (9 preceding siblings ...)
2021-04-30 11:46 ` jakub at gcc dot gnu.org
@ 2021-04-30 12:55 ` cvs-commit at gcc dot gnu.org
2021-04-30 12:57 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-30 12:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:710df943389a854ef00c15ed0ad219b41db236aa
commit r9-9479-g710df943389a854ef00c15ed0ad219b41db236aa
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 23 21:25:21 2020 -0400
c++: Fix ICE with using and virtual function. [PR95719]
conversion_path points to the base where we found the using-declaration,
not
where the function is actually a member; look up the actual base. And then
maybe look back to the derived class if the base is primary.
gcc/cp/ChangeLog:
PR c++/95719
* call.c (build_over_call): Look up the overrider in base_binfo.
* class.c (lookup_vfn_in_binfo): Look through BINFO_PRIMARY_P.
gcc/testsuite/ChangeLog:
PR c++/95719
* g++.dg/tree-ssa/final4.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (10 preceding siblings ...)
2021-04-30 12:55 ` cvs-commit at gcc dot gnu.org
@ 2021-04-30 12:57 ` cvs-commit at gcc dot gnu.org
2021-05-28 9:23 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-30 12:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:4ccd63f07dc85911e4c76b350cdc19daeee7284a
commit r8-10932-g4ccd63f07dc85911e4c76b350cdc19daeee7284a
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 23 21:25:21 2020 -0400
c++: Fix ICE with using and virtual function. [PR95719]
conversion_path points to the base where we found the using-declaration,
not
where the function is actually a member; look up the actual base. And then
maybe look back to the derived class if the base is primary.
gcc/cp/ChangeLog:
PR c++/95719
* call.c (build_over_call): Look up the overrider in base_binfo.
* class.c (lookup_vfn_in_binfo): Look through BINFO_PRIMARY_P.
gcc/testsuite/ChangeLog:
PR c++/95719
* g++.dg/tree-ssa/final4.C: New test.
(cherry picked from commit 710df943389a854ef00c15ed0ad219b41db236aa)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (11 preceding siblings ...)
2021-04-30 12:57 ` cvs-commit at gcc dot gnu.org
@ 2021-05-28 9:23 ` cvs-commit at gcc dot gnu.org
2021-05-28 12:58 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-28 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:ebfe8b28d40746ff33724bd5b9ade2552e619213
commit r9-9558-gebfe8b28d40746ff33724bd5b9ade2552e619213
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 27 23:54:52 2021 -0400
c++: 'this' adjustment for devirtualized call
My patch for 95719 made us do a better job of finding the actual virtual
function we want to call, but didn't update the 'this' pointer adjustment
to
match.
This backport also incorporates a bit of the r11-1638 reorganization.
PR c++/100797
PR c++/95719
gcc/cp/ChangeLog:
* call.c (build_over_call): Adjust base_binfo in
resolves_to_fixed_type_p case.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/virtual15.C: New test.
* g++.dg/inherit/virtual15a.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (12 preceding siblings ...)
2021-05-28 9:23 ` cvs-commit at gcc dot gnu.org
@ 2021-05-28 12:58 ` cvs-commit at gcc dot gnu.org
2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-28 12:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:f838e3ccf8d2849980e9d0f70aa60ecd2eb5772c
commit r12-1114-gf838e3ccf8d2849980e9d0f70aa60ecd2eb5772c
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 27 23:54:52 2021 -0400
c++: 'this' adjustment for devirtualized call
My patch for 95719 made us do a better job of finding the actual virtual
function we want to call, but didn't update the 'this' pointer adjustment
to
match.
PR c++/100797
PR c++/95719
gcc/cp/ChangeLog:
* call.c (build_over_call): Adjust base_binfo in
resolves_to_fixed_type_p case.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/virtual15.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (13 preceding siblings ...)
2021-05-28 12:58 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-01 15:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:7c61ce59421547194647a847263b2b9065a26e03
commit r11-8494-g7c61ce59421547194647a847263b2b9065a26e03
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 27 23:54:52 2021 -0400
c++: 'this' adjustment for devirtualized call
My patch for 95719 made us do a better job of finding the actual virtual
function we want to call, but didn't update the 'this' pointer adjustment
to
match.
PR c++/100797
PR c++/95719
gcc/cp/ChangeLog:
* call.c (build_over_call): Adjust base_binfo in
resolves_to_fixed_type_p case.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/virtual15.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004
2020-06-17 9:33 [Bug c++/95719] New: SEGV in tree_check sbergman at redhat dot com
` (14 preceding siblings ...)
2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 15:53 ` cvs-commit at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-01 15:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:1027e8c8837d9d4933946f2888d85deef2cf850b
commit r10-9876-g1027e8c8837d9d4933946f2888d85deef2cf850b
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 27 23:54:52 2021 -0400
c++: 'this' adjustment for devirtualized call
My patch for 95719 made us do a better job of finding the actual virtual
function we want to call, but didn't update the 'this' pointer adjustment
to
match.
This backport also incorporates a bit of the r11-1638 reorganization.
PR c++/100797
PR c++/95719
gcc/cp/ChangeLog:
* call.c (build_over_call): Adjust base_binfo in
resolves_to_fixed_type_p case.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/virtual15.C: New test.
* g++.dg/inherit/virtual15a.C: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread