digitalmars.D - [-profiler && std.parallelism] Error: asm statements are assumed
- Andrew Edwards (16/16) Mar 27 2014 Just verifying this is a bug:
- Vladimir Panteleev (3/4) Mar 27 2014 Yep, it's a bug.
- Paolo Invernizzi (5/21) Mar 27 2014 An unrelated question: so -profile _can_ be used in a
Just verifying this is a bug: import std.parallelism; void main(string[] args) { foreach(arg; (args[1..$]).parallel) { } } seireitei:~ ace$ dmd -profile bug /usr/share/dmd/src/druntime/import/core/atomic.d(972): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(973): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(974): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(975): Error: asm statements are assumed to throw
Mar 27 2014
On Friday, 28 March 2014 at 00:08:57 UTC, Andrew Edwards wrote:Just verifying this is a bug:Yep, it's a bug. https://d.puremagic.com/issues/show_bug.cgi?id=10849
Mar 27 2014
On Friday, 28 March 2014 at 00:08:57 UTC, Andrew Edwards wrote:Just verifying this is a bug: import std.parallelism; void main(string[] args) { foreach(arg; (args[1..$]).parallel) { } } seireitei:~ ace$ dmd -profile bug /usr/share/dmd/src/druntime/import/core/atomic.d(972): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(973): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(974): Error: asm statements are assumed to throw /usr/share/dmd/src/druntime/import/core/atomic.d(975): Error: asm statements are assumed to throwAn unrelated question: so -profile _can_ be used in a multithreaded program, if I stick to output regarding function not involved with threads? Thanks, Paolo
Mar 27 2014