PR c++/71710 - template using directive of field
authorNathan Sidwell <nathan@acm.org>
Mon, 23 Jan 2017 20:24:32 +0000 (20:24 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 23 Jan 2017 20:24:32 +0000 (20:24 +0000)
commitfc7612fd026d28298e2c270acdc5cafbe21cc1a8
tree022252886d4a452b2871f31e850d84421695283e
parente6b8075ccec830041e8c85fc50d9eee6364263f7
PR c++/71710 - template using directive of field

PR c++/71710 - template using directive of field
* pt.c (tsubst_copy_and_build [COMPONENT_REF]): Move FIELD_DECL
check earlier.

PR C++/71710
* g++.dg/template/pr71710.C: New.

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