May 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5969

           Summary: Poor error message for foreach over type tuple
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@yahoo.com.au> 2011-05-09 08:19:38 PDT ---
This code fails with a back-end error:
test.d(7): Error: type Foo is not an expression

struct Foo {
    int a;
}
int foo()
{
    foreach (f; Foo.tupleof)
    {}
    return 1;
}
//static assert(foo());
It should be a front-end error. If you uncomment the static assert, you get a
cryptic "cannot interpret Foo at compile time" error.
But the error should have been detected before CTFE was initiated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5969


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich@gmail.com
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-19 21:49:39 PST ---
https://github.com/D-Programming-Language/dmd/pull/1516

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------