Bug 8081 – pure nothrow unittest problem in generated 'header' file

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-10T17:20:00Z
Last change time
2015-02-18T03:37:58Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-05-10T17:20:55Z
A problem shown in the latest DMD2.060alpha, in the file: ...\dmd2\src\druntime\src\core\atomic.d ...\druntime\import\core\atomic.di A D2 test program: version(unittest) { pure nothrow unittest {} pure nothrow unittest {} } void main() {} Using: dmd -H test.d It generates this, that seems wrong: // D import file generated from 'test.d' version (unittest) { nothrow pure nothrow pure } void main() { }
Comment #1 by github-bugzilla — 2012-05-10T20:20:57Z
Comment #2 by k.hara.pg — 2012-09-22T23:28:11Z
Comment #3 by bugzilla — 2013-03-06T09:50:32Z
pure nothrow pure nothrow is wrong because it doesn't compile.
Comment #4 by github-bugzilla — 2013-05-12T16:16:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/69eee3956502f2455cc9aa686ac3e7a6dc5219a5 fix Issue 8081 - pure nothrow unittest problem in generated 'header' file https://github.com/D-Programming-Language/dmd/commit/23c6ac5bee0d0417a93ba560a711068150566083 Merge pull request #1139 from 9rnsr/fix8081 Issue 8081 - pure nothrow unittest problem in generated 'header' file
Comment #5 by github-bugzilla — 2014-10-05T08:55:21Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/067d3bcf728819ab67ef705b0738163fa461c0e8 Set prefix attributes in storage_class of (Unittest|New|Delete)Declaration Partially fix issue 8081.
Comment #6 by github-bugzilla — 2015-02-18T03:37:58Z
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/067d3bcf728819ab67ef705b0738163fa461c0e8 Set prefix attributes in storage_class of (Unittest|New|Delete)Declaration