---------- Forwarded message ---------- From: Martin Michlmayr <t...@cyrius.com> Date: Apr 11, 2006 12:20 PM Subject: Bug#361933: FTBFS with GCC 4.2: invalid pure specifier To: sub...@bugs.debian.org
Package: krusader Version: 1.70.0-1 Tags: patch
Your package fails to build with GCC 4.2. Version 4.2 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. The bug below is in your package and not because I'm using a snapshot of the compiler so please take a look at it. You can reproduce this with the gcc-snapshot package.
protected: /// Feel the vfs dictionary with vfiles, must be implemented for each vfs - virtual bool populateVfsList(const KURL& origin, bool showHidden) = 0L; + virtual bool populateVfsList(const KURL& origin, bool showHidden) = 0; /// Set the vfile list pointer void setVfsFilesP(vfileDict* dict); /// clear and delete all current vfiles
> protected: > /// Feel the vfs dictionary with vfiles, must be implemented > for each vfs > - virtual bool populateVfsList(const KURL& origin, bool showHidden) = > 0L; + virtual bool populateVfsList(const KURL& origin, bool > showHidden) = 0; /// Set the vfile list pointer > void setVfsFilesP(vfileDict* dict); > /// clear and delete all current vfiles
Just out of curiosity, where is "0L" defined, and how is it different from 0 or NULL (i suppose it's not)?
is syntactically wrong, but gcc < 4.2 just allows it. From the bug report I further guess, that gcc 4.2 will not allow it any more. Can't check it, as I am still using gcc 3.4.2,
> On Tuesday 11 April 2006 22:13, Dirk Eschler wrote: > > Just out of curiosity, where is "0L" defined, and how is it different > > from 0 or NULL (i suppose it's not)?
> Hi!
> 0L is just the "long" version of 0, whatever this means (the meaning is > compiler dependent). I think, that
> is syntactically wrong, but gcc < 4.2 just allows it. From the bug report I > further guess, that gcc 4.2 will not allow it any more. Can't check it, as > I am still using gcc 3.4.2,
> In any case the fix should not harm.
> Heiner
Thanks for the explanation. Since Rafi is working on the VFS right now, the fix is better committed by him.
> Just out of curiosity, where is "0L" defined, and how is it > different from 0 > or NULL (i suppose it's not)?
From what I know 0 is the mathemtical zero while 0L is a null-adress (used for pointers) - if there is the need to distinguish between numerical values and adresses...
> Am 11.04.2006 um 22:13 schrieb Dirk Eschler: > > Just out of curiosity, where is "0L" defined, and how is it > > different from 0 > > or NULL (i suppose it's not)?
> From what I know 0 is the mathemtical zero while 0L is a null-adress > (used for pointers) - if there is the need to distinguish between > numerical values and adresses...
> I changed all the "0L" to "0" in vfs files. I'll comit as soon as I'll have > a version that works ;)
> On 4/12/06, Jonas Bähr < jonas.ba...@web.de> wrote:
> > Am 11.04.2006 um 22:13 schrieb Dirk Eschler: > > > Just out of curiosity, where is "0L" defined, and how is it > > > different from 0 > > > or NULL (i suppose it's not)?
> > From what I know 0 is the mathemtical zero while 0L is a null-adress > > (used for pointers) - if there is the need to distinguish between > > numerical values and adresses...