+2019-05-02 Nathan Sidwell <nathan@acm.org>
+
+ * semantics.c (finish_id_expression_1): Remove unreachable code.
+
2019-05-01 Nathan Sidwell <nathan@acm.org>
* name-lookup.h (get_class_binding_direct): Change final arg to
wrong, so just return the identifier. */
return id_expression;
- if (TREE_CODE (decl) == NAMESPACE_DECL)
- {
- error ("use of namespace %qD as expression", decl);
- return error_mark_node;
- }
- else if (DECL_CLASS_TEMPLATE_P (decl))
+ if (DECL_CLASS_TEMPLATE_P (decl))
{
error ("use of class template %qT as expression", decl);
return error_mark_node;
}
- else if (TREE_CODE (decl) == TREE_LIST)
+
+ if (TREE_CODE (decl) == TREE_LIST)
{
/* Ambiguous reference to base members. */
error ("request for member %qD is ambiguous in "