gcc compiler bug ? testcase included, Was: Re: KDE/kdebase/kicker/kicker
André Wöbbeking
Woebbeking at onlinehome.de
Wed Jan 4 21:46:04 GMT 2006
On Wednesday 04 January 2006 22:32, David Faure wrote:
> On Wednesday 04 January 2006 20:48, Felix Berger wrote:
> > bflat1 at leela:/tmp$ g++-3.3 -o test test.cpp
> > test.cpp: In function `int main()':
> > test.cpp:18: error: type specifier omitted for parameter
> > test.cpp:18: error: syntax error before numeric constant
>
> OK; let's stick to QString::null for some more time then, especially
> in constructor calls. It's not like most of the code where this was
> converted is speed-critical.
As Simon already noted:
inline QString::QString() : d(&shared_null) { d->ref.ref(); }
inline QString(const Null &): d(&shared_null) { d->ref.ref(); }
so probably both are compiled to the same assembler code.
More information about the kde-core-devel
mailing list