public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43694]  New: G++ accepts a template friend with the wrong template parameters
@ 2010-04-08 18:17 jason at gcc dot gnu dot org
  2010-04-08 18:19 ` [Bug c++/43694] " jason at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-04-08 18:17 UTC (permalink / raw)
  To: gcc-bugs

This should not compile, but does:

namespace N {
  template<typename T, typename U>
  struct X { };
}

template<typename T>
struct Y {
  template<typename U> friend struct N::X;
};

Y<int> y;


-- 
           Summary: G++ accepts a template friend with the wrong template
                    parameters
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-23  8:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43694-4@http.gcc.gnu.org/bugzilla/>
2013-06-30 19:46 ` [Bug c++/43694] G++ accepts a template friend with the wrong template parameters paolo.carlini at oracle dot com
2013-07-01  9:13 ` paolo.carlini at oracle dot com
2021-08-03  5:00 ` pinskia at gcc dot gnu.org
2021-08-23  8:26 ` pinskia at gcc dot gnu.org
2010-04-08 18:17 [Bug c++/43694] New: " jason at gcc dot gnu dot org
2010-04-08 18:19 ` [Bug c++/43694] " jason at gcc dot gnu dot 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).