Hi, Seems after db6b3ec4a489fadfac64cd6606bce234ba83c7de, kmymoney build against gcc 5.4 triggers an internal compiler error shown like this: /home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp: In instantiation of ‘AccountsModel::setColumnVisibility(AccountsModel::Columns, bool)::<lambda(auto:3&&, QStandardItem*)> [with auto:3 = AccountsModel::setColumnVisibility(AccountsModel::Columns, bool)::<lambda(auto:3&&, QStandardItem*)>&]’: /home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp:696:53: required from here /home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp:689:34: internal compiler error: Segmentation fault childItem->removeColumn(ixCol); The code seems correct, though the commit seems huge. It should be recommendable to split it and integrate piece by piece, removing the commented code, and other possible bugs. Thanks! José.
Using 'clang' as compiler solves the issue for me. Otherwise, this is an upstream tool problem because the code is correct and clang compiles it producing the right behavior of the application (maybe also newer version of gcc do, but I don't have any at hand).
aturm said (IRC) that it also compiles with gcc-6.4.0 so even if it is a gcc bug, it looks like it's fixed.