public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers
@ 2013-05-14 18:37 daniel.kruegler at googlemail dot com
  2013-05-16 20:10 ` [Bug c++/57279] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-05-14 18:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57279
           Summary: [C++11] alias declaration fails to declare function
                    types with cv-qualifiers
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.kruegler at googlemail dot com

The following code is rejected if compiled with gcc 4.9.0 20130505
(experimental) using the flags

-std=c++11 -Wall -pedantic-errors

//------------------------------------
typedef void fc1() const; // OK
typedef void frr1() &&; // OK
typedef void fcr1() const &;
using fc2 = void() const; // #4
using frr2 = void() &&; // OK
using fcr2 = void() const &; // #6
//------------------------------------

"main.cpp|4|error: invalid qualifiers on non-member function type|
 main.cpp|6|error: invalid qualifiers on non-member function type|"

According to 8.3.5 [dcl.fct] p6 function type declarations with cv-qualifiers
are valid via alias-declarations (b3).


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

* [Bug c++/57279] [C++11] alias declaration fails to declare function types with cv-qualifiers
  2013-05-14 18:37 [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers daniel.kruegler at googlemail dot com
@ 2013-05-16 20:10 ` jason at gcc dot gnu.org
  2013-05-31 10:58 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2013-05-16 20:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-05-16
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
   Target Milestone|---                         |4.8.1
     Ever confirmed|0                           |1

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.


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

* [Bug c++/57279] [C++11] alias declaration fails to declare function types with cv-qualifiers
  2013-05-14 18:37 [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers daniel.kruegler at googlemail dot com
  2013-05-16 20:10 ` [Bug c++/57279] " jason at gcc dot gnu.org
@ 2013-05-31 10:58 ` jakub at gcc dot gnu.org
  2013-06-27 10:38 ` doko at gcc dot gnu.org
  2013-06-27 10:46 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-05-31 10:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.1                       |4.8.2

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.1 has been released.


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

* [Bug c++/57279] [C++11] alias declaration fails to declare function types with cv-qualifiers
  2013-05-14 18:37 [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers daniel.kruegler at googlemail dot com
  2013-05-16 20:10 ` [Bug c++/57279] " jason at gcc dot gnu.org
  2013-05-31 10:58 ` jakub at gcc dot gnu.org
@ 2013-06-27 10:38 ` doko at gcc dot gnu.org
  2013-06-27 10:46 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: doko at gcc dot gnu.org @ 2013-06-27 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Klose <doko at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |doko at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> ---
closing. this apparently did get into the 4.8.1 release. however can't change
the milestone back to 4.8.1.


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

* [Bug c++/57279] [C++11] alias declaration fails to declare function types with cv-qualifiers
  2013-05-14 18:37 [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers daniel.kruegler at googlemail dot com
                   ` (2 preceding siblings ...)
  2013-06-27 10:38 ` doko at gcc dot gnu.org
@ 2013-06-27 10:46 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2013-06-27 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.2                       |4.8.1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Trunk: http://gcc.gnu.org/r198975
4.8.1: http://gcc.gnu.org/r198976


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

end of thread, other threads:[~2013-06-27 10:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 18:37 [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers daniel.kruegler at googlemail dot com
2013-05-16 20:10 ` [Bug c++/57279] " jason at gcc dot gnu.org
2013-05-31 10:58 ` jakub at gcc dot gnu.org
2013-06-27 10:38 ` doko at gcc dot gnu.org
2013-06-27 10:46 ` 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).