Thread overview
[Issue 7174] New: Cannot use property function call as static if condition
Dec 28, 2011
timon.gehr@gmx.ch
Jan 02, 2012
Kenji Hara
Jul 11, 2012
Jonathan M Davis
Oct 07, 2012
yebblies
Oct 07, 2012
Kenji Hara
December 28, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7174

           Summary: Cannot use property function call as static if
                    condition
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2011-12-27 17:51:14 PST ---
Tested with DMD 2.057:

@property bool foo(){return true;}
static if(foo){}

Error: expression foo is not constant or does not evaluate to a bool

The code should compile.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7174


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid
           Platform|Other                       |All


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-02 01:22:34 PST ---
https://github.com/D-Programming-Language/dmd/pull/599

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7174


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-10 18:02:49 PDT ---
Still in dmd 2.060HEAD (though, since the pull request hasn't been merged, that's not exactly surprising).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7174


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #3 from yebblies <yebblies@gmail.com> 2012-10-08 05:52:28 EST ---
https://github.com/D-Programming-Language/dmd/commit/f4ec500d57e53dde1fe5ce6091dec52ae649b044

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7174


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blooh_@hotmail.com


--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2012-10-07 12:09:45 PDT ---
*** Issue 8767 has been marked as a duplicate of this issue. ***

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