Reproducing is easy (at least for me, Win7 x64)... thinking it might be some conflict of settings, I removed the %appdata% codeblocks user-settings and tried it stock and the same thing happens every time.
So, just open CB (preferably at stock), use
File -> New -> Empty File and type a nonsense line like:
Then hit
Plugins -> Source Code Formatter, and I immediately get the same broken assertion every time. If I remove the ternary, then astyle formats just fine. Changing settings in astyle makes no difference, it seems to happen for all styles/options (in this latest version - like I said, DLL's for astyle from previous nightlies work fine).
I first discovered this on a larger project, and narrowed it down to always (and only) happening on lines containing a ?: ternary.
As an extra added bonus, when used with stock settings CB itself crashes, no matter which option is chosen. Under my usual setup I could at least 'Ignore' it and continue.
