c++: Alias template instantiation template info
authorNathan Sidwell <nathan@acm.org>
Tue, 19 May 2020 20:29:19 +0000 (13:29 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 19 May 2020 20:29:19 +0000 (13:29 -0700)
commit74744bb1f2847b5b9ce3e97e0fec9c23bb0e499f
tree00c13ee7f64a1daa18e6617328f501cc6f6f7d13
parent7cf3f604fb102ba67ce3abe7e97440b4ed0da92e
c++: Alias template instantiation template info

I discovered that the alias instantiation machinery would setup
template_info, and then sometime later overwrite that with equivalent
info.  This broke modules, because the template info, once set, is
logically immutable.  Let's just not do that.

* pt.c (lookup_template_class_1): Do not reinit template_info of an
alias here.
gcc/cp/ChangeLog
gcc/cp/pt.c