public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template @ 2012-12-04 9:06 redi at gcc dot gnu.org 2012-12-04 9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: redi at gcc dot gnu.org @ 2012-12-04 9:06 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Bug #: 55588 Summary: Failure to diagnose non-template-id prefixed by keyword template Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: redi@gcc.gnu.org This example is taken from 14.2 [temp.names] p5 template <class T> struct A { void f(int); template <class U> void f(U); }; template <class T> void f(T t) { A<T> a; a.template f<>(t); // OK: calls template a.template f(t); // error: not a template-id } G++ compiles it without error (as does Clang++, but not Comeau online) ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org @ 2012-12-04 9:14 ` redi at gcc dot gnu.org 2013-10-20 14:09 ` ville.voutilainen at gmail dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: redi at gcc dot gnu.org @ 2012-12-04 9:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-12-04 09:14:02 UTC --- I should have added an instantiation of the function to the code: template <class T> struct A { void f(int); template <class U> void f(U); }; template <class T> void f(T t) { A<T> a; a.template f<>(t); // OK: calls template a.template f(t); // error: not a template-id } int main() { f(1); } ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org 2012-12-04 9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org @ 2013-10-20 14:09 ` ville.voutilainen at gmail dot com 2020-04-11 15:16 ` mpolacek at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: ville.voutilainen at gmail dot com @ 2013-10-20 14:09 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Ville Voutilainen <ville.voutilainen at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ville.voutilainen at gmail dot com --- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> --- Also present in 4.9 trunk, and I recently got a user complaint about this bug. How can I upvote? :) ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org 2012-12-04 9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org 2013-10-20 14:09 ` ville.voutilainen at gmail dot com @ 2020-04-11 15:16 ` mpolacek at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: mpolacek at gcc dot gnu.org @ 2020-04-11 15:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |94404 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org CC| |mpolacek at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This is CWG 96. Too late for GCC 10 but I'll take a look in GCC 11. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 [Bug 94404] [meta-bug] C++ core issues ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org ` (2 preceding siblings ...) 2020-04-11 15:16 ` mpolacek at gcc dot gnu.org @ 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-23 8:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vincent.lextrait at gmail dot com --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 89978 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org ` (3 preceding siblings ...) 2021-08-23 8:12 ` pinskia at gcc dot gnu.org @ 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2024-01-13 23:25 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-23 8:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |language.lawyer at gmail dot com --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 96321 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org ` (4 preceding siblings ...) 2021-08-23 8:12 ` pinskia at gcc dot gnu.org @ 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2024-01-13 23:25 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-23 8:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mschulze at ivs dot cs.ovgu.de --- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 45975 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org ` (5 preceding siblings ...) 2021-08-23 8:12 ` pinskia at gcc dot gnu.org @ 2024-01-13 23:25 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-01-13 23:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlame646 at gmail dot com --- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 113375 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-01-13 23:25 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-12-04 9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org 2012-12-04 9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org 2013-10-20 14:09 ` ville.voutilainen at gmail dot com 2020-04-11 15:16 ` mpolacek at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2021-08-23 8:12 ` pinskia at gcc dot gnu.org 2024-01-13 23:25 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).