public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49155] New: [C++0x] decltype-specifier not supported as base type specifier
@ 2011-05-25  7:32 daniel.kruegler at googlemail dot com
  2011-05-25  8:52 ` [Bug c++/49155] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-05-25  7:32 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] decltype-specifier not supported as base type
                    specifier
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com
                CC: jason@redhat.com


gcc 4.7.0 20110521 (experimental) in C++0x mode rejects the following code:

//---
struct A{};

A foo();

struct B : decltype(foo()) {}; // #
//---

"error: expected class-name before 'decltype'
 error: expected '{' before 'decltype'
 error: expected unqualified-id before '{' token"

This code should be accepted, a decltype-specifier is now valid in
base-specifier-list as of FDIS, Clause 10.


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

end of thread, other threads:[~2011-05-25  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25  7:32 [Bug c++/49155] New: [C++0x] decltype-specifier not supported as base type specifier daniel.kruegler at googlemail dot com
2011-05-25  8:52 ` [Bug c++/49155] " redi at gcc dot gnu.org
2011-05-25  9:14 ` daniel.kruegler at googlemail dot com
2011-05-25 10:02 ` redi at gcc dot gnu.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).