re PR c++/79143 ([new inheriting constructors] inheriting constructor fails with...
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Feb 2017 22:12:15 +0000 (23:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Feb 2017 22:12:15 +0000 (23:12 +0100)
commit9bfc55d096925e7882fde2e08f557a77fd1abf77
treed8b6501e5322eabecd24d70abffc6bbe501232e6
parenta56c0ac08242269bbcc4bd1f480eda2378336776
re PR c++/79143 ([new inheriting constructors] inheriting constructor fails with brace initialization)

PR c++/79143
* pt.c (instantiate_class_template_1): Copy CLASSTYPE_NON_AGGREGATE
from pattern to type.

* g++.dg/cpp1z/pr79143.C: New test.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r245315
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/pr79143.C [new file with mode: 0644]