www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 526] New: Segmentation fault when use typetuple in template argument

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

           Summary: Segmentation fault when use typetuple in template
                    argument
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: lovesyao hotmail.com


import std.typetuple;
template test(TypeTuple!(uint,ulong) tuple){

}


-- 
Nov 15 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=526






No crash for dmd 1.021 and 2.004. The code is invalid anyway, and an error
message is printed.


-- 
Oct 02 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=526


shro8822 vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 vandals.uidaho.edu





this would be really cool if you could do it:

template Using(alias fn)
{
 static if(fn args == function)
 {
  template Replace(I...)
  {
  alias RemoveIndex!(I).From(args) dropedArgs;
  template With(newArgs v) // derived arg list in template == typesafe
  {
   ...
  }
 }
 else static assert(false)
}


-- 
Oct 03 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=526


bugzilla digitalmars.com changed:

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





I don't understand the suggested feature or what it has to do with the bug
report. The bug itself appears to be working fine.


-- 
Jun 27 2008