public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers Date: Tue, 14 May 2013 18:37:00 -0000 [thread overview] Message-ID: <bug-57279-4@http.gcc.gnu.org/bugzilla/> (raw) 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).
next reply other threads:[~2013-05-14 18:37 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-05-14 18:37 daniel.kruegler at googlemail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-57279-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).