www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9652] New: __traits(getAttributes) doesn't work with manifest constants

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9652

           Summary: __traits(getAttributes) doesn't work with manifest
                    constants
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: doob me.com



The following code:

import std.typetuple;

 (3) enum foo = 3;

void main ()
{
    alias TypeTuple!(__traits(getAttributes, foo)) bar;
}

Results in the following error:

test.d(7): Error: first argument is not a symbol

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 05 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9652




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/67fa699e45d16a396520270567fe057d59ea5800
fix Issue 9652 - __traits(getAttributes) doesn't work with manifest constants

anonymous enum fix

fix code style

style fix 2

template arguments, initialized with expression interpreted as expressions in
__ traits, not as enum

Added lost spaces

add getVarExp method

move ed initialization into semantic and move semantic into getVarExp.

move check to manifestness to semanticTiargs and other changes

fix optimize condition and assign to enum test

final fixes

https://github.com/D-Programming-Language/dmd/commit/869c537d44e362d3ce6a4906b8422196eba33e50


Issue9652 -  __traits(getAttributes) doesn't work with manifest constants

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9652


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

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



Pull request:
https://github.com/D-Programming-Language/dmd/pull/1960

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 11 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9652


9999 <sibaqexozequgaba tempomail.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sibaqexozequgaba tempomail.
                   |                            |fr



PDT ---
It says it depends on this:
https://github.com/D-Programming-Language/phobos/pull/1283

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