public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23211] New: using dec in nested class doesn't import name
@ 2005-08-03  0:22 igodard at pacbell dot net
  2005-09-14 15:29 ` [Bug c++/23211] [3.4/4.0/4.1 regression] " bangerth at dealii dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: igodard at pacbell dot net @ 2005-08-03  0:22 UTC (permalink / raw)
  To: gcc-bugs

template<typename T>
struct  foo {
    typedef int itype;
    typedef int jtype;
    struct bar {
        typedef typename foo::itype itype;
        using foo::jtype;
        itype i;
        jtype j;
        };
    };

gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:9: error: `jtype' does not name a type

Adding "typename" here and there changes the error you get but doesn't compile.
The above code compiles OK on Comeau.

-- 
           Summary: using dec in nested class doesn't import name
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-08-22 20:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23211-6594@http.gcc.gnu.org/bugzilla/>
2005-10-13 20:11 ` [Bug c++/23211] [3.4/4.0/4.1 regression] using dec in nested class doesn't import name pinskia at gcc dot gnu dot org
2005-10-31  4:39 ` mmitchel at gcc dot gnu dot org
2006-02-24  0:31 ` [Bug c++/23211] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-25  2:34 ` [Bug c++/23211] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-08-16  6:44 ` pinskia at gcc dot gnu dot org
2006-08-18 21:30 ` janis at gcc dot gnu dot org
2006-08-22 19:17 ` jason at gcc dot gnu dot org
2006-08-22 20:28 ` igodard at pacbell dot net
2006-08-22 20:31 ` [Bug c++/23211] " pinskia at gcc dot gnu dot org
2006-08-22 20:38 ` igodard at pacbell dot net
2005-08-03  0:22 [Bug c++/23211] New: " igodard at pacbell dot net
2005-09-14 15:29 ` [Bug c++/23211] [3.4/4.0/4.1 regression] " bangerth at dealii dot org
2005-09-14 15:35 ` pinskia at gcc dot gnu dot org
2005-09-14 15:47 ` pinskia at gcc dot gnu dot org
2005-09-14 18:07 ` bangerth at dealii dot org
2005-09-27 16:17 ` mmitchel 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).