c++/3961: Parser bug

Sylvain Pion Sylvain.Pion@sophia.inria.fr
Mon Aug 13 02:06:00 GMT 2001


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



More information about the Gcc-bugs mailing list