buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)
78 stars 45 forks source link

PODs compile-time error when building in release mode #60

Closed baklava151 closed 4 years ago

baklava151 commented 6 years ago

Using dub build --build=release with either ldc2 1.6.0 or dmd 2.078.0 gives the following when trying to use insert from pods.d

/home/user/.dub/packages/ddbc-0.3.7/ddbc/source/ddbc/pods.d(436,9): Error: cannot interpret halt at compile time
/home/user/.dub/packages/ddbc-0.3.7/ddbc/source/ddbc/pods.d(484,35):        called from here: getPropertyMemberType()

Making the assert on line 436 static seems to resolve this

SingingBush commented 4 years ago

this didn't cause an issue with current master on dmd 2.085 or dmd 2.089 but it makes sense to do so I'll make the change and push to master anyway.