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; 2+ 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] 2+ messages in thread

end of thread, other threads:[~2010-04-08 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-08 18:17 [Bug c++/43694] New: G++ accepts a template friend with the wrong template parameters 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).