This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25663] [4.0/4.1/4.2 Regression] Trouble parsing nested templated constructor calls



------- 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]