diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-02-27 10:50:36 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-02-27 10:50:36 -0800 |
commit | 9d2d283367a407c1ba9ecdb8590f9295828e25f8 (patch) | |
tree | 670766297b077469d190cbf4fad93b2c4191d4c2 /gcc/tree-ssa-strlen.c | |
parent | ba49e9eb18730cc71e5ffc302092f87ef6821f24 (diff) | |
download | gcc-9d2d283367a407c1ba9ecdb8590f9295828e25f8.zip gcc-9d2d283367a407c1ba9ecdb8590f9295828e25f8.tar.gz gcc-9d2d283367a407c1ba9ecdb8590f9295828e25f8.tar.bz2 |
Compare ARGUMENT_PACKS [pr93933]
This implements Jason's suggested approach: 'I'd think that the bug is
that we're treating them as types in the first place; they aren't
types, so they shouldn't reach comptypes. I'd lean toward adding an
assert to that effect and fixing the caller to use
e.g. template_args_equal.'
PR c++/93933
* pt.c (template_args_equal): Pass ARGUMENT_PACKS through to
cp_tree_equal.
* tree.c (cp_tree_equal): Compare ARGUMENT_PACKS here,
* typeck.c (comptypes): Assert we don't get any argument packs.
Diffstat (limited to 'gcc/tree-ssa-strlen.c')
0 files changed, 0 insertions, 0 deletions