KDevPlatform not compiling using GCC 4.6.0

Aleix Pol aleixpol at kde.org
Sat Apr 2 15:12:39 UTC 2011


On Sat, Apr 2, 2011 at 10:15 AM, Christoph Bartoschek <bartoschek at gmx.de>wrote:

>  Am Samstag 02 April 2011 schrieb Nicolás Alvarez:
>
> > On 3/29/11, Milian Wolff <mail at milianw.de> wrote:
>
> > > Aleix Pol, 28.03.2011:
>
> > >> Hi!
>
> > >> Apparently now we will need some GCC flag called -fpermissive if we
>
> > >> want to
>
> > >> keep using mutable references. Since I guess the best would be to fix
>
> > >> it, I'm reporting the error here.
>
> > >>
>
> > >> Opinions?
>
> > >> Aleix
>
> > >
>
> > > afair there was also a bug report or review request for this including
> a
>
> > > patch
>
> > > by someone else.
>
> > >
>
> > > I'd also say: make the references pointers - then they can stay
> mutable.
>
> >
>
> > Changing these references to pointers is binary-incompatible.
>
> >
>
> > I just tried removing 'mutable' (leaving them as references) and
>
> > kdevplatform still compiles; I think this would be a better solution.
>
>
> It's not surprising that it still compiles. Having mutable on references
> makes no sense as the objects they reference do not belong to the class and
> are therefore not protected by const.
>
>
> Christoph
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
I guess the best thing for 1.2 would be to add the -fpermissive gcc argument
from CMake...

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110402/782f2431/attachment.html>


More information about the KDevelop-devel mailing list