KDE 3.2.2 Build Problems with GCC 3.4

Simon Hausmann hausmann at kde.org
Sun May 9 22:31:01 BST 2004


On Sunday 09 May 2004 22:12, Simon Hausmann wrote:
> On Sunday 09 May 2004 19:44, André Wöbbeking wrote:
> > Hi Simon,
> >
> > On Saturday 08 May 2004 11:45, Simon Hausmann wrote:
> > > On Saturday 08 May 2004 11:14, André Wöbbeking wrote:
> > > > could you tell me the section in the standard. Every time I'm tring
> > > > to find something in the standard I'm lost.
> > >
> > > From gcc.gnu.org:
> > > "[dcl.init.ref]/5, bullet 2, sub-bullet 1 and [class.temporary]/2"
> > >
> > > That's 8.5.3.5 and 12.2.2, if you prefer numbering scheme.
> >
> > thank you.
> >
> > > > So the attached file shouldn't compile? Hmm, it does (with GCC 3.3
> > > > and 3.4).
> > >
> > > None of the two foo calls involves binding an rvalue to the const
> >
> > are you sure? For foo(1) a temporary Dummy object must be created
> > implicitly.
[...nonsense analysis...]

I realize my analysis regarding the foo(1) example is nonsense. I don't 
understand why foo(1) is accepted, in the light of 12.2.1.

Simon




More information about the kde-core-devel mailing list