[Issue 7027] New: Struct member trySemantic() regression in DMD Git master

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 28 14:07:53 PST 2011


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

           Summary: Struct member trySemantic() regression in DMD Git
                    master
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at klickverbot.at


--- Comment #0 from klickverbot <code at klickverbot.at> 2011-11-28 14:06:51 PST ---
Reposting this from my mailing list message so it doesn't get lost:

https://github.com/D-Programming-Language/dmd/commit/8baaaf675e7d50b1160f81b9a27aef106f584968
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list