www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15029] New: [Reg 2.068.0] _postblitRecurse invokes opDispatch

https://issues.dlang.org/show_bug.cgi?id=15029

          Issue ID: 15029
           Summary: [Reg 2.068.0] _postblitRecurse invokes opDispatch with
                    __xpostblit (breaks emplace)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

See https://github.com/D-Programming-Language/dub/issues/667.

~/dub$ ./build.sh
Generating version file...
Running dmd...
/home/sun/INSTALL/dmd/include/d2/object.d(2329): Error: argument
s.opDispatch!"__xpostblit" has no parent
/home/sun/INSTALL/dmd/include/d2/std/conv.d(4054): Error: template instance
object._postblitRecurse!(Json) error instantiating
/home/sun/INSTALL/dmd/include/d2/std/conv.d(3917):        instantiated from
here: emplaceImpl!(Json)
/home/sun/INSTALL/dmd/include/d2/std/array.d(2829):        instantiated from
here: emplaceRef!(Json, Json)
/home/sun/INSTALL/dmd/include/d2/std/array.d(135):        instantiated from
here: put!(Json)
source/dub/generators/sublimetext.d(39):        instantiated from here:
array!(MapResult!(targetFolderJson, Result))
source/dub/generators/sublimetext.d(61): Error: template instance
std.array.array!(MapResult!(Json, string[])) error instantiating
source/dub/generators/sublimetext.d(95): Error: template instance
std.array.array!(Json[]) error instantiating
source/dub/generators/sublimetext.d(99): Error: template instance
std.array.array!(MapResult!(makeBuildSystem, string[])) error instantiating
source/dub/internal/sdlang/lexer.d-mixin-1260(1260): Deprecation: constructor
std.datetime.SysTime.this is deprecated - Please use the overload which takes a
Duration instead of a FracSec.
source/dub/internal/sdlang/lexer.d-mixin-1268(1268): Deprecation: constructor
std.datetime.SysTime.this is deprecated - Please use the overload which takes a
Duration instead of a FracSec.

It fails over `s.opDispatch!"__xpostblit" has no parent` but
`__traits(hasMember, S, "__xpostblit")` should have instantiated opDispatch
anyhow.

--
Sep 08 2015