Bug 22500 – ImportC: Lots of errors when compiling tomlc99
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-11-10T07:36:03Z
Last change time
2021-12-14T10:34:21Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
rempas
Comments
Comment #0 by rempas — 2021-11-10T07:36:03Z
I'm trying to compile the [toml99](https://github.com/cktan/tomlc99) C library using ImportC but I'm getting some errors. I have already created a thread in the forums and I was told to come here to submit an issue. In the link bellow you can see the problem I'm having so you can also follow the discussion and have more info and also so I don't retype all that stuff. Link:
https://forum.dlang.org/thread/[email protected]
Comment #1 by bugzilla — 2021-11-22T08:16:04Z
From reading the thread, it appears that:
int foo(int);
int (*fp)(int) = foo;
fails to compile. In my tests, it compiles successfully with both gcc and importc.
If you have a test case that does fail, please reopen this with the test case.
@WalterBright updated dlang/dmd pull request #13340 "fix Issue 22500 - ImportC: Lots of errors when compiling tomlc99" fixing this issue:
- fix Issue 22500 - ImportC: Lots of errors when compiling tomlc99
https://github.com/dlang/dmd/pull/13340
Comment #4 by dlang-bot — 2021-11-23T03:55:57Z
dlang/dmd pull request #13340 "fix Issue 22500 - ImportC: Lots of errors when compiling tomlc99" was merged into stable:
- d130ce200f8408f19d72565816a6a02b25577a07 by Walter Bright:
fix Issue 22500 - ImportC: Lots of errors when compiling tomlc99
https://github.com/dlang/dmd/pull/13340
Comment #5 by dlang-bot — 2021-12-14T10:34:21Z
dlang/dmd pull request #13421 "merge stable" was merged into master:
- c1483808e2cac74cdbc18f0ed3d5fa9654603ae5 by Walter Bright:
fix Issue 22500 - ImportC: Lots of errors when compiling tomlc99
https://github.com/dlang/dmd/pull/13421