Summary: Struct member trySemantic() regression in DMD Git
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from klickverbot <> 2011-11-28 14:06:51 PST 
Reposting this from my mailing list message so it doesn't get lost:
introduced a regression concerning __traits(compiles, …):
struct Foo {
  int a;
static assert(!__traits(compiles, { return Foo.a; }));

The assert doesn't pass anymore with the aforementioned commit in place, i.e.
__traits(compiles, …) returns true. If the delegate was used in actual code,
semantic analysis would later give a »need this« error.

I'm not quite sure what the best/correct fix for this is.

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

Reply via email to