buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PODs compile-time error when building in release mode

baklava151 opened this issue · comments

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

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.