[Bug c++/9154] [3.4 regression] poor error message for ">>" vs. "> >" for nested template args

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 20 14:13:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9154



------- Additional Comments From bangerth at dealii dot org  2003-06-20 14:13 -------
Giovanni, I don't have time to check with your patch at present, but
how does the patch act if presented with code like

  template <int> struct A{};
  template <typename> struct B {};

  B<A< 1>>2 > > b;

or, even weirder (needs two tokens lookahead):
  const int x = 0;
  B<A< 1>>x > > c;

W.



More information about the Gcc-bugs mailing list