public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18738] New: typename not allowed with non-dependent qualified name
@ 2004-11-30 13:45 belz at kolumbus dot fi
  2004-11-30 14:04 ` [Bug c++/18738] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: belz at kolumbus dot fi @ 2004-11-30 13:45 UTC (permalink / raw)
  To: gcc-bugs

namespace foo {
    typedef int my_type;
}

template<typename T>
struct A {
    typename foo::my_type bar();
};


$ g++ typename.cpp
typename.cpp:8: error: 'my_type' in namespace 'foo' does not name a type

with

$ g++ -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc/configure --enable-languages=c++,c --enable-
threads=posix
Thread model: posix
gcc version 4.0.0 20041130 (experimental)


The qualified name does not need to be dependent according to the std03 14.6/5.
This seems to be regression from the versions before new parser.


Mikael

-- 
           Summary: typename not allowed with non-dependent qualified name
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belz at kolumbus dot fi
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-09-06 15:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 13:45 [Bug c++/18738] New: typename not allowed with non-dependent qualified name belz at kolumbus dot fi
2004-11-30 14:04 ` [Bug c++/18738] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-12-01 16:30 ` reichelt at gcc dot gnu dot org
2004-12-14 19:52 ` mmitchel at gcc dot gnu dot org
2004-12-15  0:43 ` cvs-commit at gcc dot gnu dot org
2004-12-15  0:45 ` mmitchel at gcc dot gnu dot org
2004-12-15  1:51 ` [Bug c++/18738] [3.4 " mmitchel at gcc dot gnu dot org
2005-01-30 15:07 ` nefercheprure at gmail dot com
2005-01-30 15:10 ` pinskia at gcc dot gnu dot org
2005-01-30 15:11 ` pinskia at gcc dot gnu dot org
2005-05-19 17:22 ` mmitchel at gcc dot gnu dot org
2005-09-06 10:41 ` reichelt at gcc dot gnu dot org
2005-09-06 15:26 ` cvs-commit at gcc dot gnu dot org
2005-09-06 15:27 ` reichelt 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).