diff options
author | Jason Merrill <jason@redhat.com> | 2020-10-08 15:43:26 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-10-08 16:53:36 -0400 |
commit | 1c56c143b2011080d8a4516f37f78f647b0ee258 (patch) | |
tree | df642e8801773353a8f4fa3b542fc18e41361671 /gcc/tree-ssa-loop-niter.c | |
parent | a500588aa523f1f04ae51809e476e3ebfcb081d3 (diff) | |
download | gcc-1c56c143b2011080d8a4516f37f78f647b0ee258.zip gcc-1c56c143b2011080d8a4516f37f78f647b0ee258.tar.gz gcc-1c56c143b2011080d8a4516f37f78f647b0ee258.tar.bz2 |
c++: Fix member alias template in C++17 and up. [PR96805]
Here we're trying to push into a<T>::c<N> in order to instantiate t<N>, but
were building a TYPENAME_TYPE for it because a<T> isn't open yet. Don't
do that when we know we're trying to enter the scope.
gcc/cp/ChangeLog:
PR c++/96805
PR c++/96199
* pt.c (tsubst_aggr_type): Don't build a TYPENAME_TYPE when
entering_scope.
(tsubst_template_decl): Use tsubst_aggr_type.
gcc/testsuite/ChangeLog:
PR c++/96805
* g++.dg/cpp0x/alias-decl-pr96805.C: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions