public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-14258-7614@http.gcc.gnu.org/bugzilla/>]
* [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-03-30  1:19 ` [Bug c++/14258] typename in a using declaration not supported giovannibajo at libero dot it
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ 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] 19+ messages in thread

end of thread, other threads:[~2014-01-22 12:03 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14258-4@http.gcc.gnu.org/bugzilla/>
2010-11-29 19:21 ` [Bug c++/14258] typename in a using declaration not supported pinskia at gcc dot gnu.org
2010-12-01 15:47 ` pinskia at gcc dot gnu.org
2011-12-13 19:10 ` fabien at gcc dot gnu.org
2011-12-13 19:34 ` fabien at gcc dot gnu.org
2012-01-03  9:58 ` fabien at gcc dot gnu.org
2012-03-19 16:51 ` redi at gcc dot gnu.org
2014-01-22 10:26 ` pipping at exherbo dot org
2014-01-22 11:15 ` redi at gcc dot gnu.org
2014-01-22 11:18 ` fabien at gcc dot gnu.org
2014-01-22 11:59 ` pipping at exherbo dot org
2014-01-22 12:03 ` pipping at exherbo dot org
     [not found] <bug-14258-7614@http.gcc.gnu.org/bugzilla/>
2007-05-06 22:31 ` pinskia at gcc dot gnu dot org
2007-05-07 12:04 ` rleigh at debian dot org
2008-02-16 19:28 ` starlight at binnacle dot cx
2008-08-16 20:04 ` pinskia at gcc dot gnu dot org
2010-06-07 12:43 ` fabien at gcc dot gnu dot org
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-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).