diff options
author | Nathan Sidwell <nathan@acm.org> | 2022-10-25 09:39:00 -0400 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2022-10-25 15:16:22 -0400 |
commit | 43e654afeba484d75fbee080262a038c1da00ad5 (patch) | |
tree | ba3b9cc0bc14981159ac43691e5dd0fdd293e103 /libjava/testsuite/libjava.loader | |
parent | fe1e1ae0c84d3f52f62509d164bbb117c29d9675 (diff) | |
download | gcc-43e654afeba484d75fbee080262a038c1da00ad5.zip gcc-43e654afeba484d75fbee080262a038c1da00ad5.tar.gz gcc-43e654afeba484d75fbee080262a038c1da00ad5.tar.bz2 |
c++: Adjust synthetic template parm creation
We intend to mark synthetic template parameters (coming from use of auto
parms), as DECL_VIRTUAL_P. The API of process_template_parm is
awkwardly confusing, and we were marking the previous template parm
(unless this was the first parm). process_template_parm returns the list
of parms, when most (all?) users really want the newly-added final node.
That's a bigger change, so let's not do it right now. With this, we
correctly mark such synthetic parms DECL_VIRTUAL_P.
gcc/cp/
* parser.cc (synthesize_implicit_template_parm): Fix thinko about
mark the new parm DECL_VIRTUAL_P. Avoid unneccessary tree_last call.
Diffstat (limited to 'libjava/testsuite/libjava.loader')
0 files changed, 0 insertions, 0 deletions