File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1797,8 +1797,9 @@ class cppfront
1797
1797
looking_up.push_back (&lookup_id);
1798
1798
auto guard = finally ([&]{ looking_up.pop_back (); });
1799
1799
1800
+ bool res = false ;
1800
1801
// If any parent declaration
1801
- return std::any_of (current_declarations.rbegin (), current_declarations.rend () - 1 , [&](declaration_node const * decl) {
1802
+ std::find_if (current_declarations.rbegin (), current_declarations.rend () - 1 , [&](declaration_node const * decl) {
1802
1803
// that can have aliases
1803
1804
if ((decl->is_function ()
1804
1805
|| decl->is_type ()
@@ -1819,14 +1820,17 @@ class cppfront
1819
1820
&& *decl->identifier ->identifier == lookup_id) {
1820
1821
auto & type_id = get<alias_node::a_type>(alias->initializer );
1821
1822
// and its value is a dependent _type-id_.
1822
- return is_dependent (*type_id);
1823
+ res = is_dependent (*type_id);
1824
+ return true ;
1823
1825
}
1824
1826
}
1825
1827
return false ;
1826
1828
});
1827
1829
}
1828
1830
return false ;
1829
1831
});
1832
+
1833
+ return res;
1830
1834
}
1831
1835
1832
1836
auto is_dependent (const type_id_node& n)
You can’t perform that action at this time.
0 commit comments