re PR c++/71826 (ICE on valid C++ code with ambiguous member lookup: tree check:...
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Jul 2016 18:42:24 +0000 (20:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Jul 2016 18:42:24 +0000 (20:42 +0200)
commit7a7f16ca45487c0a414c9a3d06423ab80d0f6a4f
tree049dc48270bdabefd3aee6960faf743bd7389d8a
parentf4d902955b3d123937ab85866c51f9b665591604
re PR c++/71826 (ICE on valid C++ code with ambiguous member lookup: tree check: expected baselink, have error_mark in tsubst_baselink, at cp/pt.c:13737)

PR c++/71826
* pt.c (tsubst_baselink): Only set BASELINK_OPTYPE for BASELINK_P.

* g++.dg/template/pr71826.C: New test.

From-SVN: r238441
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr71826.C [new file with mode: 0644]