This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14258] New: using typename (only when necessary) in a using declaration reports bogus error
- From: "japple at freeshell dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2004 13:29:09 -0000
- Subject: [Bug c++/14258] New: using typename (only when necessary) in a using declaration reports bogus error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code:
template<typename T>
struct A {
typedef A type;
};
template<typename T>
struct B : A<T> {
using typename A<T>::type;
type f(type);
};
Give a "syntax error before typename." Without typename in the using
declaration, however, type in B<T> is not a typename, so f's declaration is not
well formed.
Because the "typename" is necessary, this is not the same as bug 3033.
--
Summary: using typename (only when necessary) in a using
declaration reports bogus error
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: japple at freeshell dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14258