Summary: compiler add a cast and then complain that the cast
                    have no effect, giving no .o file
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Paul Dufresne <> 2010-11-04 18:33:30 PDT 
I try to compile, with dmd 1.065 the following:

struct u64_t{
  uint lo;
  uint hi;

bool is_zero64(u64_t i)    {i.hi==0 && i.lo==0;}

but I get:
[p...@arcturus ~]$ dmd -c test.d
test.d(7): Error: == has no effect in expression (i.lo == cast(uint)0)
test.d(7): Error: function test.is_zero64 expected to return a value of type
[p...@arcturus ~]$ 

and I don't seems to find a way to rewrite this without the compiler refusing

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to