Comments (1)
Better-reduced test case that doesn't depend on Phobos:
// figure.d
import plot2kill.gtkwrapper;
// gtkwrapper.d
void popupTickDialog() {
toImpl!(double[])(["1.0"]);
}
T toImpl(T)(string[] src) {
auto result = new double[src.length];
foreach (e; src)
result[]= parse!(double)(e);
return result;
}
Target parse(Target, Source)(ref Source p) {
Exception bailOut()() {
return new Exception(text(p));
}
bailOut();
return 0;
}
string text(T...)(T args) {
return string.init;
}
$ ldc2 -I.. -O3 figure.d -c
ldc2: /home/dsimcha/ldcStuff/ldc/gen/tollvm.cpp:656: llvm::Value* DtoBitCast(llvm::Value_, llvm::Type_, const char_): Assertion `!isaStruct(t)' failed.
0 ldc2 0x000000000100a78f
1 ldc2 0x000000000100ac79
2 libpthread.so.0 0x00007fb9a7353020
3 libc.so.6 0x00007fb9a643b405 gsignal + 53
4 libc.so.6 0x00007fb9a643e680 abort + 384
5 libc.so.6 0x00007fb9a64345b1 assert_fail + 241
6 ldc2 0x0000000000722e6d
7 ldc2 0x00000000006ad108
8 ldc2 0x00000000006af32d DtoCallFunction(Loc&, Type, DValue, ArrayBase) + 3469
9 ldc2 0x00000000006d736c CallExp::toElem(IRState) + 412
10 ldc2 0x00000000007020a7 DtoArgument(Parameter_, Expression_) + 71
11 ldc2 0x00000000006af1dd DtoCallFunction(Loc&, Type_, DValue_, ArrayBase) + 3133
12 ldc2 0x00000000006f7c4b DtoNewClass(Loc, TypeClass, NewExp_) + 491
13 ldc2 0x00000000006da4a8 NewExp::toElem(IRState_) + 1096
14 ldc2 0x00000000006d3504 Expression::toElemDtor(IRState_) + 68
15 ldc2 0x00000000007285c8 ReturnStatement::toIR(IRState_) + 1016
16 ldc2 0x000000000072819e CompoundStatement::toIR(IRState_) + 94
17 ldc2 0x00000000007052b9 DtoDefineFunction(FuncDeclaration_) + 2009
18 ldc2 0x0000000000745a49 Ir::emitFunctionBodies() + 57
19 ldc2 0x00000000006b5c66 Module::genLLVMModule(llvm::LLVMContext&, Ir_) + 806
20 ldc2 0x00000000005cf369 main + 6153
21 libc.so.6 0x00007fb9a6427ead __libc_start_main + 253
22 ldc2 0x00000000005dec8d
Aborted
from ldc.
Related Issues (20)
- No error when using params in @naked functions HOT 4
- Shadowed static assert error in the compiler output HOT 8
- musl libc requires `-link-defaultlib-debug -frame-pointer=all` to show line information in backtrace
- Support CMAKE_INSTALL_LIBDIR ? HOT 1
- LLVM ERROR when cross-compiling to arm64 with -g -flto HOT 1
- Reduce output of `ldc2 --version`
- `core.atomic.atomicStore` and `core.atomic.atomicLoad` calls itself recursively HOT 4
- ldc expects shared libraries even thought explicitly asks for a static build HOT 2
- remove or de-UB --release from the CLI HOT 12
- Support for newer LLVM versions for C++ bootstrap branch? HOT 7
- Wish: implement %ldccurrentpath% variable for ldc2.conf HOT 3
- Incorrect LLVM type for struct with single align(1) member HOT 6
- Incorrect ELF file for mips64el HOT 5
- Regression from LDC 1.30 to 1.38 on referencing template instances symbols HOT 6
- Please include Xtensa arch in standard distro? HOT 11
- ImportC + wasm = bug? HOT 2
- Make it easier to build static libraries HOT 4
- Implement merging of static libraries via `-lib` on Posix too
- Wish: accept *.obj on par with *.o for non-Windows targets HOT 3
- Wrong struct layout (alignment related), followup #4719 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldc.