KDevPlatform not compiling using GCC 4.6.0

Christoph Bartoschek bartoschek at gmx.de
Sat Apr 2 08:15:27 UTC 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110402/51208d01/attachment.html>


More information about the KDevelop-devel mailing list