This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45254] data declaration parse error
- From: "wanng dot fenng at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2010 12:49:01 -0000
- Subject: [Bug c++/45254] data declaration parse error
- References: <bug-45254-19549@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from wanng dot fenng at gmail dot com 2010-08-11 12:49 -------
Subject: Re: data declaration parse error
On 08/11/2010 06:03 PM, paolo dot carlini at oracle dot com wrote:
> ------- Comment #1 from paolo dot carlini at oracle dot com 2010-08-11 10:03 -------
> This is plain invalid: you are constructing a temporary ofstream and then
> hoping to pass it to a constructor taking a ref, not a const ref, cannot work.
Thank you Carlini for your quick reply, I just read the c++ standard and
confirmed this is not a bug.
It just confused me when some other one who are using M$ vc telling me
this way works.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45254