diff options
author | Jason Merrill <jason@redhat.com> | 2013-03-16 22:39:04 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2013-03-16 22:39:04 -0400 |
commit | 7805032d9a298af97f9b84d62e454476b47adb79 (patch) | |
tree | bee6f4bad7c0c1f02a796816650f32aa97897f37 /gcc/cp/pt.c | |
parent | c73356802f430fd51f0d4db1ec928fb093c7c4a6 (diff) | |
download | gcc-7805032d9a298af97f9b84d62e454476b47adb79.zip gcc-7805032d9a298af97f9b84d62e454476b47adb79.tar.gz gcc-7805032d9a298af97f9b84d62e454476b47adb79.tar.bz2 |
re PR c++/52374 ([C++11] Fails to transform id-expression into dependent base member access in lambda expression)
PR c++/52374
* pt.c (tsubst_qualified_id): Use current_nonlambda_class_type.
From-SVN: r196743
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 1bbcba2..4274479 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -12043,7 +12043,7 @@ tsubst_qualified_id (tree qualified_id, tree args, else if (TYPE_P (scope)) { expr = (adjust_result_of_qualified_name_lookup - (expr, scope, current_class_type)); + (expr, scope, current_nonlambda_class_type ())); expr = (finish_qualified_id_expr (scope, expr, done, address_p && PTRMEM_OK_P (qualified_id), QUALIFIED_NAME_IS_TEMPLATE (qualified_id), |