digitalmars.D.bugs - [Issue 18144] New: Phobos makefile incorrectly sets --dip1000 for
- d-bugmail puremagic.com (35/35) Dec 29 2017 https://issues.dlang.org/show_bug.cgi?id=18144
https://issues.dlang.org/show_bug.cgi?id=18144 Issue ID: 18144 Summary: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: jack jackstouffer.com DMD can't be built with DIP1000 and neither can Phobos. DIP1000 shouldn't be set in either case $ make -j16 -f posix.mak BUILD=debug std/algorithm/iteration.test /Library/Developer/CommandLineTools/usr/bin/make -C ../druntime -f posix.mak MODEL=64 DMD=../dmd/generated/osx/debug/64/dmd OS=osx BUILD=debug make -C ../dmd/src -f posix.mak BUILD=debug OS=osx MODEL=64 no cpu specified, assuming X86 CC="c++" dmd -lib -of../generated/osx/debug/64/lexer.a -m64 -J../generated/osx/debug/64 -L-lstdc++ -version=MARS -fPIC -w -de -g -debug dmd/console.d dmd/entity.d dmd/errors.d dmd/globals.d dmd/id.d dmd/identifier.d dmd/lexer.d dmd/tokens.d dmd/utf.d dmd/root/array.d dmd/root/ctfloat.d dmd/root/file.d dmd/root/filename.d dmd/root/outbuffer.d dmd/root/port.d dmd/root/rmem.d dmd/root/rootobject.d dmd/root/stringtable.d dmd/root/hash.d dmd/root/stringtable.d(48): Error: returning cast(char*)(&this + 16L) escapes a reference to parameter this, perhaps annotate with return dmd/root/stringtable.d(58): Error: returning cast(const(char)*)(&this + 16L) escapes a reference to parameter this, perhaps annotate with return make[2]: *** [../generated/osx/debug/64/lexer.a] Error 1 make[1]: *** [../dmd/generated/osx/debug/64/dmd] Error 2 make: *** [../druntime/generated/osx/debug/64/libdruntime.a] Error 2 --
Dec 29 2017