You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/parse.h
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1597,7 +1597,11 @@ class parser
1597
1597
{
1598
1598
assert (!decl->identifier && "ICE: declaration should have been unnamed");
1599
1599
if (auto obj = std::get_if<declaration_node::object>(&decl->type)) {
1600
-
//if ((*obj)->typid)
1600
+
if ((*obj)->is_wildcard()) {
1601
+
error("an unnamed object at expression scope currently cannot have a deduced type (the reason to create an unnamed object is typically to create a temporary of a named type)");
0 commit comments