diff options
author | Jason Merrill <jason@redhat.com> | 2022-03-22 11:17:26 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-03-23 08:56:17 -0400 |
commit | a3f78748fab6b24e3d4a8b319afd3f8afa17248f (patch) | |
tree | ff898410e9c665018f3a72d9d33ae22395769fbf /gcc/fold-const.cc | |
parent | e6a3991ea15c0b14117b5693d77e15fd0477ce51 (diff) | |
download | gcc-a3f78748fab6b24e3d4a8b319afd3f8afa17248f.zip gcc-a3f78748fab6b24e3d4a8b319afd3f8afa17248f.tar.gz gcc-a3f78748fab6b24e3d4a8b319afd3f8afa17248f.tar.bz2 |
c++: using from enclosing class template [PR105006]
Here, DECL_DEPENDENT_P was false for the second using because Row<eT> is
"the current instantiation", so lookup succeeds. But since Row itself has a
dependent using-decl for operator(), the set of functions imported by the
second using is dependent, so we should set the flag.
PR c++/105006
gcc/cp/ChangeLog:
* name-lookup.cc (lookup_using_decl): Set DECL_DEPENDENT_P if lookup
finds a dependent using.
gcc/testsuite/ChangeLog:
* g++.dg/template/using30.C: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions