[Bug 1361354] [NEW] smokegen generates wrong cast function for smokeqt
Matthias Klose
doko at ubuntu.com
Mon Aug 25 20:19:25 UTC 2014
Public bug reported:
In trusty, smokegen generates smokedata.cpp(cast), which ends with:
[...]
case 152: //QXmlStreamWriter
switch(to) {
case 152: return (void*)(QXmlStreamWriter*)xptr;
default: return xptr;
}
default: return xptr;
}
}
in utopic, the function ends as:
case 155: //QXmlStreamWriter
switch(to) {
case 155: return (void*)(QXmlStreamWriter*)xptr;
default: return xptr;
}
case 157: //iterator
switch(to) {
case 157: return (void*)(iterator*)xptr;
default: return xptr;
}
default: return xptr;
}
}
This doesn't look right, and ends with a build error. Removing the 157
case lets the build continue and then fails further on with
/scratch/packages/tmp/smokeqt-4.14.0/obj-x86_64-linux-gnu/qtcore/x_3.cpp: In member function 'void __smokeqtcore::x_QBitArray::x_36(Smoke::Stack)':
/scratch/packages/tmp/smokeqt-4.14.0/obj-x86_64-linux-gnu/qtcore/x_3.cpp:1003:57: warning: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say '&__smokeqtcore::x_QBitArray::operator=' [-fpermissive]
x[0].s_class = (void*)&this->QBitArray::operator=;
^
/scratch/packages/tmp/smokeqt-4.14.0/obj-x86_64-linux-gnu/qtcore/x_3.cpp:1003:57: warning: converting from 'QBitArray& (QBitArray::*)(const QBitArray&)' to 'void*' [-Wpmf-conversions]
** Affects: smokegen (Ubuntu)
Importance: High
Status: Confirmed
** Affects: smokeqt (Ubuntu)
Importance: High
Status: Confirmed
** Affects: smokegen (Ubuntu Utopic)
Importance: High
Status: Confirmed
** Affects: smokeqt (Ubuntu Utopic)
Importance: High
Status: Confirmed
** Also affects: smokegen (Ubuntu)
Importance: Undecided
Status: New
** Also affects: smokegen (Ubuntu Utopic)
Importance: Undecided
Status: New
** Also affects: smokeqt (Ubuntu Utopic)
Importance: Undecided
Status: New
** Changed in: smokegen (Ubuntu Utopic)
Importance: Undecided => High
** Changed in: smokegen (Ubuntu Utopic)
Status: New => Confirmed
** Changed in: smokeqt (Ubuntu Utopic)
Importance: Undecided => High
** Changed in: smokeqt (Ubuntu Utopic)
Status: New => Confirmed
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to smokeqt in Ubuntu.
https://bugs.launchpad.net/bugs/1361354
Title:
smokegen generates wrong cast function for smokeqt
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smokegen/+bug/1361354/+subscriptions
More information about the kubuntu-bugs
mailing list