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

* [Bug c++/49155] [C++0x] decltype-specifier not supported as base type specifier
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2011-05-25  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-25 08:31:13 UTC ---
dup of PR 42603


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

* [Bug c++/49155] [C++0x] decltype-specifier not supported as base type specifier
  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
  2 siblings, 0 replies; 4+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-05-25  9:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-05-25 08:48:39 UTC ---
(In reply to comment #1)
> dup of PR 42603

I agree - I apologize for the missing bug search in this case (I usually do).


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

* [Bug c++/49155] [C++0x] decltype-specifier not supported as base type specifier
  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
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2011-05-25 10:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-25 09:38:50 UTC ---
no problem - I memorise all c++0x bug reports so you don't have to ;)

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


^ 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).