www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1987] New: Incorrect type infos when invariant/const are used as storage classes

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

           Summary: Incorrect type infos when invariant/const are used as
                    storage classes
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


const does not work either 
---- 
void main()
{
    invariant int x;
    auto typeInfo = typeid(typeof(x));
    assert (typeInfo == typeid(invariant int)); // Fails 

    invariant int[] a;
    typeInfo = typeid(typeof(a));
    assert (typeInfo == typeid(invariant int[])); // Fails
}
----


-- 
Apr 12 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1987


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-12-16 08:23:52 PST ---
Fixed DMD2.041.

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