PR c++/88419 - C++17 ICE with class template arg deduction.
authorJason Merrill <jason@redhat.com>
Thu, 21 Feb 2019 23:07:12 +0000 (18:07 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 21 Feb 2019 23:07:12 +0000 (18:07 -0500)
commit5498361c0f4822b2c48f19835963afa5a630175b
tree7668aef3c0488b46384790be0adb6de7e947dfd5
parenteeb20b969684d4c502ee168cdffd67cc491cd354
PR c++/88419 - C++17 ICE with class template arg deduction.

Just like in make_constrained_auto, we need to defer setting TYPE_CANONICAL
until we've set fields that will affect structural_comptypes.

* pt.c (make_template_placeholder): Set TYPE_CANONICAL after
CLASS_PLACEHOLDER_TEMPLATE.

From-SVN: r269080
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction62.C [new file with mode: 0644]