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