This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in Header File
- To: klouis at mitre dot org
- Subject: Re: Bug in Header File
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 3 Aug 1999 23:36:39 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <199908031708.NAA27920@pogo.mitre.org>
> I have gotten around the bug by changing the line from:
>
> _Tp __s(_Tp());
>
> to:
>
> _Tp __s=_Tp();
I think this is the wrong fix in general: it uses copy-initialization
instead of direct-initialization. I think that
_Tp __s((_Tp()));
or
_Tp __s((0,_Tp()));
should do the trick.
Regards,
Martin