Bug 19912 – [module] No implicit import of object module when an object declaration exists.
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-28T19:31:58Z
Last change time
2019-06-09T05:37:38Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2019-05-28T19:31:58Z
void f(string){}
$ dmd -c -conf= a.d
Error: cannot find source code for runtime library file 'object.d'
dmd might not be correctly installed. Run 'dmd -man' for installation instructions.
config file: not found
Specify path to file 'object.d' with -I switch
However, adding any of the following below compiles without error.
struct object {}
void f(string){}
---
class object {}
void f(string){}
---
alias object = int;
void f(string){}
---
void object() {}
void f(string){}
Comment #1 by dlang-bot — 2019-05-29T20:30:38Z
@ibuclaw created dlang/dmd pull request #9914 "fix Issue 19912: No implicit import of object module when an object declaration exists." fixing this issue:
- fix Issue 19912: No implicit import of object module when an object declaration exists.
https://github.com/dlang/dmd/pull/9914
Comment #2 by bugzilla — 2019-05-29T23:39:45Z
Why is this critical?
Comment #3 by ibuclaw — 2019-05-30T16:04:28Z
It's a second symptom for the segfault in issue 19911.
Whilst fixing this will make the original test case not segfault, the issue is still present when compiling without druntime.
This was originally reported in gcc's bugzilla, fix will need backporting to the dmd c++ branch + gdc.
Comment #4 by dlang-bot — 2019-05-30T23:35:36Z
dlang/dmd pull request #9914 "fix Issue 19912: No implicit import of object module when an object declaration exists." was merged into stable:
- 149cd71774c5b7f4c5335f580e134ba870eacd23 by Iain Buclaw:
fix Issue 19912: No implicit import of object module when an object declaration exists.
https://github.com/dlang/dmd/pull/9914
Comment #5 by dlang-bot — 2019-06-09T05:37:38Z
dlang/dmd pull request #9999 "[dmd-cxx] fix Issue 19912: No implicit import of object module when an object declaration exists." was merged into dmd-cxx:
- d8565a50b7dac926d8fa5cd93e22c4fb6527b643 by Iain Buclaw:
fix Issue 19912: No implicit import of object module when an object declaration exists.
https://github.com/dlang/dmd/pull/9999