www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4752] New: fail_compilation/fail345.d asserts in expression.c

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4752

           Summary: fail_compilation/fail345.d asserts in expression.c
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: braddr puremagic.com


--- Comment #0 from Brad Roberts <braddr puremagic.com> 2010-08-29 01:26:57 PDT
---
dmd: expression.c:816: void expToCBuffer(OutBuffer*, HdrGenState*, Expression*,
PREC): Assertion `precedence[e->op] != PREC_zero' failed.

To run the test:
make test_results/fail_compilation/fail345.d.out

The code in the test:
// 3775

struct Bug3775 {    
  static int byLine()()    { return 1;   }
}

static assert( cast(int) Bug3775.byLine);

This test came from bug 3775 comment 2.  The failure mode is new.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 29 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4752


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2010-08-30
11:41:39 PDT ---
http://www.dsource.org/projects/dmd/changeset/651

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