[Development] Qt 5.6.0-rc build issues on CentOS 6.7 x86_64 with g++
Thiago Macieira
thiago.macieira at intel.com
Thu Mar 3 06:40:45 CET 2016
On quinta-feira, 3 de março de 2016 04:09:25 PST Walter Stefan wrote:
> qcanbusdevice.h:93: error: ISO C++ forbids initialization of member
> âframeIdâ
Context:
struct Filter
{
enum FormatFilter {
MatchBaseFormat = 0x0001,
MatchExtendedFormat = 0x0002,
MatchBaseAndExtendedFormat = 0x0003,
};
Q_DECLARE_FLAGS(FormatFilters, FormatFilter)
quint32 frameId = 0;
quint32 frameIdMask = 0;
QCanBusFrame::FrameType type = QCanBusFrame::InvalidFrame;
FormatFilter format = MatchBaseAndExtendedFormat;
};
This is using C++11 non-static member initialisation. That is not permitted in
Qt 5.6 or 5.7[*]. b6ad22e5b43410cc01c9f59e1f4897cd270c635f should be reverted.
I've created https://codereview.qt-project.org/151163 for it. When it gets
approved, don't wait for me to stage it.
[*] It might be permitted now, after we decided to drop VS2012 support, but we
haven't yet re-done the list of allowed C++11 features in Qt 5.7. Until we do
that, it's not allowed.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list