This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3961: Parser bug
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/3961: Parser bug
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: 13 Aug 2001 19:36:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Craig Rodrigues <rodrigc at mediaone dot net>
The following reply was made to PR c++/3961; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/3961: Parser bug
Date: Mon, 13 Aug 2001 15:26:39 -0400
----- Forwarded message from Sylvain Pion <Sylvain.Pion@sophia.inria.fr> -----
Delivered-To: rodrigc@gcc.gnu.org
Date: Mon, 13 Aug 2001 11:06:33 +0200
From: Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
To: rodrigc@gcc.gnu.org
Cc: Sylvain.Pion@sophia.inria.fr, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org
Subject: Re: c++/3961: Parser bug
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010812193529.26727.qmail@sourceware.cygnus.com>; from rodrigc@gcc.gnu.org on Sun, Aug 12, 2001 at 07:35:29PM -0000
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
----- End forwarded message -----