Thread overview
[Issue 7027] New: Struct member trySemantic() regression in DMD Git master
Nov 28, 2011
klickverbot
Dec 07, 2011
Walter Bright
Dec 08, 2011
Walter Bright
November 28, 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@puremagic.com
        ReportedBy: code@klickverbot.at


--- Comment #0 from klickverbot <code@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: -------
December 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7027


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-12-07 14:57:33 PST ---
Thanks for posting this. I found the trouble, and am testing a fix.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 08, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7027


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-12-07 20:45:49 PST ---
https://github.com/D-Programming-Language/dmd/commit/9a2e87b7bc0fab38aee4d4bf9edea954b604c385

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