diff options
author | Jason Merrill <jason@redhat.com> | 2019-04-22 15:16:46 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-04-22 15:16:46 -0400 |
commit | f2b6aeeab219cc41ebc763e8e8378f83287d3591 (patch) | |
tree | 5463b687bd25e7cba53974befa499a9967e41cf6 /gcc/tree-data-ref.c | |
parent | 1e8dac32576fbde72a1ea44b567a2c10f332ecd2 (diff) | |
download | gcc-f2b6aeeab219cc41ebc763e8e8378f83287d3591.zip gcc-f2b6aeeab219cc41ebc763e8e8378f83287d3591.tar.gz gcc-f2b6aeeab219cc41ebc763e8e8378f83287d3591.tar.bz2 |
PR c++/87366 - wrong error with alias template.
With this testcase the code in template_args_equal to treat aliases as
distinct wasn't sufficient, because it only looked at the top level, whereas
here we have a reference to the alias. So let's also handle treating them
as distinct in structural_comptypes. For GCC 10 I have a more comprehensive
patch, but for GCC 9 let's go with this smaller change.
* typeck.c (structural_comptypes): When comparing_specializations,
aliases are unequal.
(comptypes): When comparing_specializations, do structural
comparison.
From-SVN: r270494
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions