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)
- Latest xcode results in lots of linker warnings HOT 4
- --ftime-trace on Windows has unescaped slashes (again) HOT 3
- `-DRT_SUPPORT_SANITIZERS=ON` changes runtime ABI
- vector operations are broken with optimization level >= 2 HOT 4
- ldc2-1.35.0 on Windows fails to link with sqlite3 but works with older release
- iOS Simulator Libraries (Phobos & D runtime) HOT 1
- Support for "-fno-asynchronous-unwind-tables" HOT 2
- arm release HOT 2
- Mipsel-musl: build error in D runtime debug HOT 5
- ldc 1.35.0+ crashes HOT 14
- LDC1.35.0/macOS/AArch64: Incorrect long/ulong mangling HOT 2
- Add Context Sensitive Profile-Guided Optimization (CSIR PGO) support
- Add Sampling Profile-Guided Optimization (PGO) support HOT 4
- Performance regression when updating from 1.34 to 1.35 HOT 4
- ldc 1.35.0 fails to build with llvm 17 HOT 3
- cmake fails on macos HOT 1
- Miscompilation with -opaque-pointers=true with LLVM16 HOT 3
- FrontEnd PGO (FE PGO) vs IR PGO HOT 2
- Crash when compiling function missing return with inline assembly
- Implement CFI support
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.