[Issue 3071] nested func declaration parse problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 17 04:43:05 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3071


Gide Nwawudu <gide at nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |gide at nwawudu.com




--- Comment #1 from Gide Nwawudu <gide at nwawudu.com>  2009-06-17 04:43:04 PDT ---
Does not compile with DMD v2.030. Changing size_t to int and/or replacing
invariant(int)[] with int[] makes the code compile.

test.d
------
void func1()
{
    size_t func2(invariant(void)[] t)
    {
        return 0;
    }

}


C:\>dmd test.d
test.d(5): found 'func2' when expecting ';' following 'statement'
test.d(10): found '}' when expecting ';' following 'statement'
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement
test.d(12): found 'EOF' instead of statement

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


More information about the Digitalmars-d-bugs mailing list