www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6763] New: Using TypeTuple with (const/in/ref etc.) changes it forever

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

           Summary: Using TypeTuple with (const/in/ref etc.) changes it
                    forever
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



---
If any two from r/i/o functions are uncommented a compiler try to add mutually
exclusive storage classes and fails with "Assertion failure: '0' on line 8438
in file 'mtype.c'"
---
template TypeTuple(TList...)
{
    alias TList TypeTuple;
}

alias TypeTuple!(int) T;

void f(      T) { }
void c(const T) { }  ///T now is (const int)
void r(ref   T) { }  ///T now is(ref const int)
/*
void i(in    T) { }  ///Uncomment to get an Assertion failure in 'mtype.c'
void o(out   T) { }  ///ditto
*/

void main()
{
    f(0); //With D2: Error: function main.f ((ref const const(int) _param_0))
is not callable using argument types (int)
}
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 03 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6763


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch



D2 patch:
https://github.com/D-Programming-Language/dmd/pull/429

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 04 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6763


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



12:55:08 PST ---
https://github.com/D-Programming-Language/dmd/commit/7a6644673212c5a2865ef31924cba7d2aa944787

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




16:54:48 MSK ---
Is it fixed for D1?

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