This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3961: Parser bug
- To: rodrigc at gcc dot gnu dot org
- Subject: Re: c++/3961: Parser bug
- From: Sylvain Pion <Sylvain dot Pion at sophia dot inria dot fr>
- Date: Mon, 13 Aug 2001 11:06:33 +0200
- Cc: Sylvain dot Pion at sophia dot inria dot fr, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- References: <20010812193529.26727.qmail@sourceware.cygnus.com>
On Sun, Aug 12, 2001 at 07:35:29PM -0000, rodrigc@gcc.gnu.org wrote:
> Your attachment contains only a single line.
> Is this correct?
No, it's not what I wanted to show, I don't know what happened to the
attachment. Here's the complete code :
template <class i> struct FT {};
double to_dbl(FT<int>) { return 0.0; }
struct bb { bb(double) {} };
struct GV { GV(bb) {} };
int main()
{
FT<int> m;
GV gv(bb(to_dbl(m)));
//GV gv(bb((double)to_dbl(m)));
}
> When I compiled it with: gcc version 3.0.1 20010811,
> it compiled for me without any warnings.
>
> Can you try a newer gcc snapshot?
The bug is still there.
After sending this bug-report, I noticed that it's quite similar to what is
mentionned in http://gcc.gnu.org/bugs.html#parsing , so it's probably
nothing new.
--
Sylvain