public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/39269] New: Invalid template friend declaration accepted @ 2009-02-23 3:27 bangerth at gmail dot com 2009-02-23 9:58 ` [Bug c++/39269] " rguenth at gcc dot gnu dot org 2010-05-02 14:44 ` redi at gcc dot gnu dot org 0 siblings, 2 replies; 4+ messages in thread From: bangerth at gmail dot com @ 2009-02-23 3:27 UTC (permalink / raw) To: gcc-bugs This code has erroneously been accepted since at least gcc 2.95: -------------------------- namespace NS { template <int A, int B> class X {}; } class Y { template <int> friend class NS::X; }; -------------------------- Note the wrong number of template arguments in the friend declaration. The code is correctly rejected if X is not in a namespace. W. -- Summary: Invalid template friend declaration accepted Product: gcc Version: 4.3.2 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39269 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/39269] Invalid template friend declaration accepted 2009-02-23 3:27 [Bug c++/39269] New: Invalid template friend declaration accepted bangerth at gmail dot com @ 2009-02-23 9:58 ` rguenth at gcc dot gnu dot org 2010-05-02 14:44 ` redi at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu dot org @ 2009-02-23 9:58 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-23 09:58 ------- Confirmed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-02-23 09:58:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39269 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/39269] Invalid template friend declaration accepted 2009-02-23 3:27 [Bug c++/39269] New: Invalid template friend declaration accepted bangerth at gmail dot com 2009-02-23 9:58 ` [Bug c++/39269] " rguenth at gcc dot gnu dot org @ 2010-05-02 14:44 ` redi at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: redi at gcc dot gnu dot org @ 2010-05-02 14:44 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from redi at gcc dot gnu dot org 2010-05-02 14:44 ------- *** Bug 43960 has been marked as a duplicate of this bug. *** -- redi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yuri at tsoft dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39269 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-39269-4@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/39269] Invalid template friend declaration accepted [not found] <bug-39269-4@http.gcc.gnu.org/bugzilla/> @ 2013-07-01 9:13 ` paolo.carlini at oracle dot com 0 siblings, 0 replies; 4+ messages in thread From: paolo.carlini at oracle dot com @ 2013-07-01 9:13 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39269 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC|gcc-bugs at gcc dot gnu.org | Resolution|--- |DUPLICATE Known to fail| | --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Dup. *** This bug has been marked as a duplicate of bug 43694 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-01 9:13 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-02-23 3:27 [Bug c++/39269] New: Invalid template friend declaration accepted bangerth at gmail dot com 2009-02-23 9:58 ` [Bug c++/39269] " rguenth at gcc dot gnu dot org 2010-05-02 14:44 ` redi at gcc dot gnu dot org [not found] <bug-39269-4@http.gcc.gnu.org/bugzilla/> 2013-07-01 9:13 ` paolo.carlini at oracle dot com
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).