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-08-03  0:34 ` [Bug c++/23211] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ 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] 12+ messages in thread
[parent not found: <bug-23211-6594@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-23211-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-01-03  9:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03  0:22 [Bug c++/23211] New: using dec in nested class doesn't import name igodard at pacbell dot net
2005-08-03  0:34 ` [Bug c++/23211] " pinskia at gcc dot gnu dot org
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
     [not found] <bug-23211-6594@http.gcc.gnu.org/bugzilla/>
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
     [not found] <bug-23211-4@http.gcc.gnu.org/bugzilla/>
2011-12-28 20:04 ` fabien at gcc dot gnu.org
2011-12-28 20:10 ` fabien at gcc dot gnu.org
2012-01-03  9:59 ` fabien at gcc dot gnu.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).