public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14258] New: using typename (only when necessary) in a using declaration reports bogus error
@ 2004-02-23 13:29 japple at freeshell dot org
  2004-02-23 13:59 ` [Bug c++/14258] [3.3/3.4/3.5 Regression] typename " giovannibajo at libero dot it
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: japple at freeshell dot org @ 2004-02-23 13:29 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-05-10 17:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 13:29 [Bug c++/14258] New: using typename (only when necessary) in a using declaration reports bogus error japple at freeshell dot org
2004-02-23 13:59 ` [Bug c++/14258] [3.3/3.4/3.5 Regression] typename " giovannibajo at libero dot it
2004-02-23 14:00 ` [Bug c++/14258] [3.4/3.5 " giovannibajo at libero dot it
2004-02-23 14:00 ` [Bug c++/14258] [3.3/3.4/3.5 " giovannibajo at libero dot it
2004-02-27 12:47 ` [Bug c++/14258] [3.4/3.5 " giovannibajo at libero dot it
2004-03-01  2:10 ` mmitchel at gcc dot gnu dot org
2004-03-18 12:01 ` [Bug c++/14258] " reichelt at gcc dot gnu dot org
2004-03-30  1:19 ` [Bug c++/14258] typename in a using declaration not supported giovannibajo at libero dot it
2004-11-18 12:26 ` pinskia at gcc dot gnu dot org
2005-05-10 17:42 ` 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).