[Bug c++/18497] error in parsing function template

2004-11-15 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-15 18:09 --- "c.f();" is just a dup of bug 795 which was fixed by the new parser in 3.4.x. Now we do have a bug in that we accept the code without though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18497

[Bug c++/18497] error in parsing function template

2004-11-15 Thread zhaojiangbin at yahoo dot com
--- Additional Comments From zhaojiangbin at yahoo dot com 2004-11-15 17:54 --- (In reply to comment #0) > The code in question: > begin > struct C > { > template void f() {} > }; > > template void ff() > { > C c; > c.f(); // <-- > } > end Sorry there was a m

[Bug c++/18497] error in parsing function template

2004-11-15 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-15 14:10 --- This should be rejected, why it is not I don't know. -- What|Removed |Added Stat