public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11697] New: Failure to diagnose class template redeclaration via using declaration
@ 2003-07-28 21:34 dgregor at gcc dot gnu dot org
  2003-07-28 22:17 ` [Bug c++/11697] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2003-07-28 21:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Failure to diagnose class template redeclaration via
                    using declaration
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dgregor at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin6.6
  GCC host triplet: powerpc-apple-darwin6.6
GCC target triplet: powerpc-apple-darwin6.6

The following program should not compile, because 'A' is being redeclared in namespace foo via 
the using declaration (it has already been declared differently in namespace foo):

namespace foo {
  template<typename T>
  struct A {};
}

namespace bar {
  template<typename T>
  struct A {};
}

namespace foo {
  using bar::A;
}


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

end of thread, other threads:[~2004-01-11  1:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-28 21:34 [Bug c++/11697] New: Failure to diagnose class template redeclaration via using declaration dgregor at gcc dot gnu dot org
2003-07-28 22:17 ` [Bug c++/11697] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
2003-07-30 17:09 ` janis187 at us dot ibm dot com
2003-08-01 18:48 ` cvs-commit at gcc dot gnu dot org
2003-08-01 18:50 ` mmitchel at gcc dot gnu dot org
2003-08-01 19:23 ` pinskia at physics dot uc dot edu
2003-08-03 16:00 ` [Bug c++/11697] [3.3 " mmitchel at gcc dot gnu dot org
2003-08-04  1:10 ` pinskia at physics dot uc dot edu
2003-10-16  9:25 ` mmitchel at gcc dot gnu dot org
2004-01-11  1:39 ` pinskia 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).