public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37141]  New: syntax error when using type inherited from base class
@ 2008-08-16 16:45 joao dot eiras at gmail dot com
  2008-08-16 20:04 ` [Bug c++/37141] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: joao dot eiras at gmail dot com @ 2008-08-16 16:45 UTC (permalink / raw)
  To: gcc-bugs

The following code sample does not compile, and it should.
I get the error:
gpp_bug_1.cpp: In constructor `B<X>::B()':
gpp_bug_1.cpp:10: error: expected `;' before "x"

G++ version: g++ (GCC) 4.4.0 20080729 (experimental)

template<class X> class A{
public:
        typedef X type_t;
};

template<class X> class B: A<X>{
public:
        using typename A<X>::type_t;
        B(){type_t x;}
};

int main_(int argc, char *argv[]){
        return 1;
}


-- 
           Summary: syntax error when using type inherited from base class
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joao dot eiras at gmail dot com


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


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

* [Bug c++/37141] syntax error when using type inherited from base class
  2008-08-16 16:45 [Bug c++/37141] New: syntax error when using type inherited from base class joao dot eiras at gmail dot com
@ 2008-08-16 20:04 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-16 20:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-16 20:03 -------


*** This bug has been marked as a duplicate of 14258 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-08-16 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-16 16:45 [Bug c++/37141] New: syntax error when using type inherited from base class joao dot eiras at gmail dot com
2008-08-16 20:04 ` [Bug c++/37141] " 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).