[Bug c++/11814] Code with missing "template" keyword wrongly accepted
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED CC||msebor at gcc dot gnu.org Known to work||7.0 Resolution|--- |FIXED Known to fail||3.3, 4.5.3, 4.8.3, 4.9.3, ||5.3.0, 6.3.0 --- Comment #16 from Martin Sebor --- With the current trunk of GCC 7.0 the test cases are rejected as expected (GCC 6 still accepts it). Closing as fixed. $ cat t.C && gcc -O2 -S -Wall -Wextra t.C template struct A { template void foo(); }; template struct B { template void foo() { A* p; p->foo(); // wrong: should be "p->template foo();" } }; t.C: In member function ‘void B::foo()’: t.C:11:16: error: expected primary-expression before ‘int’ p->foo(); // wrong: should be "p->template foo();" ^~~ t.C:11:16: error: expected ‘;’ before ‘int’
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814 Andrew Pinski changed: What|Removed |Added CC||jvoosten at bankai dot nl --- Comment #15 from Andrew Pinski --- *** Bug 64611 has been marked as a duplicate of this bug. ***
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814 Paolo Carlini changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #14 from Paolo Carlini --- *** Bug 57312 has been marked as a duplicate of this bug. ***
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814 --- Comment #13 from Jonathan Wakely 2011-10-09 14:01:26 UTC --- and 4.7.0
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814 Wolfgang Bangerth changed: What|Removed |Added CC||bangerth at gmail dot com --- Comment #12 from Wolfgang Bangerth 2011-10-09 13:52:05 UTC --- Still happens with gcc4.5.1.
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
--- Comment #10 from pinskia at gcc dot gnu dot org 2008-12-27 06:34 --- *** Bug 37596 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||jason at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
--- Comment #9 from fang at csl dot cornell dot edu 2007-05-08 20:48 --- Still accepts-invalid with 4.2-20070430 (RC2). -- fang at csl dot cornell dot edu changed: What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-04 01:11 --- This is also related to PR 20308 (I think they are more than related, I think they are the same bug but reproducing in a different way). -- pinskia at gcc dot gnu dot org changed: What|Removed |Added OtherBugsDependingO||20308 nThis|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
--- Additional Comments From redi at gcc dot gnu dot org 2005-03-25 20:38 --- This can be simplified to: template void f() { T t; t.f<>(0); //should be t.template f<>(0); } If either 'f' is renamed g++ correctly reports an error. Comeau's online compiler behaves the same. -- What|Removed |Added CC||redi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814
[Bug c++/11814] Code with missing "template" keyword wrongly accepted
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-17 13:58 --- *** Bug 20516 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||topiolli at ee dot oulu dot ||fi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814