D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3587 - Aggregate rule references undefined Tuple
Summary: Aggregate rule references undefined Tuple
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: spec
Depends on:
Blocks:
 
Reported: 2009-12-07 07:28 UTC by Jerry Quinn
Modified: 2015-06-09 01:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2009-12-07 07:28:10 UTC
http://digitalmars.com/d/2.0/statement.html#ForeachStatement

The Aggregate rule is defined as follows:

Aggregate:
    Expression
    Tuple

However, Tuple is only defined by example.  The grammar needs an entry to specify what is actually legal here.

Without that you can't write, say, a bison grammar without inventing the missing bits.
Comment 1 Walter Bright 2009-12-14 02:06:15 UTC
The Tuple should just be removed. Expressions can evaluate to Tuples.
Comment 2 Leandro Lucarella 2009-12-14 06:26:00 UTC
http://www.dsource.org/projects/phobos/changeset/1384
Comment 3 Walter Bright 2009-12-31 11:13:24 UTC
Fixed dmd 1.054 and 2.038