[Development] Error "invokes deleted constructor" while building Qt5 with clang and libc++

Francisco Lopes da Silva francisco.mailing.lists at oblita.com
Mon Dec 3 14:47:44 CET 2012


2012/12/3 Olivier Goffart <olivier at woboq.com>

> On Sunday 02 December 2012 23:02:15 Thiago Macieira wrote:
> > On segunda-feira, 3 de dezembro de 2012 07.53.07, Olivier Goffart wrote:
> > > I was able to reproduce the error by making QMetaTypeIdQObject a
> template.
> > > (On linux with both clang 3.1 and clang trunk)
> > > Attached the problematic testase.
> > >
> > > I am not sure yet if this is a compiler bug or if we are indeed doing a
> > > copy.
> >
> > Does it at least compile as:
> >
> >         static QBasicAtomicInteger metatype_id { 0 };
> >
> > (i.e., without the =)
>
> Yes it does compile without the =.
> It also compiles if the QMetaTypeIdQObject is not a template type.
>
> But it still does not compile even without the {}:
> static QBasicAtomicInteger metatype_id = 0;
>
> So it looks like a compiler bug.
>
> --
> Olivier
>

Wow, I missed that in my sample, now I see. Indeed it looks like a compiler
bug indeed. I'll report to LLVM Bug List.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121203/4bbea3e1/attachment.html>


More information about the Development mailing list