This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ bug? Seeking C++ language lawyer help (dcl.init.ref)
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: "Turly O'Connor" <turly at apple dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 21:15:10 +0000
- Subject: Re: g++ bug? Seeking C++ language lawyer help (dcl.init.ref)
- Organization: Codesourcery LLC
- References: <F20C17C7-2A1B-11D6-82C0-003065B00580@apple.com>
Turly O'Connor wrote:
> don't think the temporary is required, because the 'operator &' means
> that dcl.init.ref/6 applies and so direct binding should take place.
> But IANAL, so I would appreciate further input. Is gcc3 justified in
> creating a temporary, or is this a bug?
You analysis appears sound.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org