This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25663] [4.0/4.1/4.2 Regression] Trouble parsing nested templated constructor calls
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2006 12:21:45 -0000
- Subject: [Bug c++/25663] [4.0/4.1/4.2 Regression] Trouble parsing nested templated constructor calls
- References: <bug-25663-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-01-04 12:21 -------
> Using
>
> (ScalarCode<CflFunctor<3> >(CflFunctor<3>(omrot, vis_f)))(x, y);
>
> was a workaround for me, so I thought it indeed was the issue...
Adding parens in my example also makes the bug go away:
(A<0>(A<0>(0)));
We couldn't parse this before 3.4.0 either.
We try to parse this as a declaration instead of a constructor call.
With the parens we don't try to parse this as a declaration and
everything goes well.
> maybe there are two issues actually.
I don't think so.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25663