diff --git a/source/to_cpp1.h b/source/to_cpp1.h index b160542b7..53c8eb2a7 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -2120,14 +2120,25 @@ class cppfront -> bool { auto type_id = std::get_if(&n.type); - if ( - !type_id - || (*type_id)->is_wildcard() - ) - { - return false; // (*this)(*term.initializer); - } - return self->is_dependent(**type_id); + return + ( + ( + !type_id + || (*type_id)->is_wildcard() + ) + && (*this)(*n.initializer) + ) + || ( + type_id + && self->is_dependent(**type_id) + ); + } + + auto operator()(statement_node const&) const + -> bool + { + // TODO: Implement checking whether an initializer is dependent. + return false; } auto operator()(inspect_expression_node const& expr) const