public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65750] [4.9/5 Regression] misinterpret in a virtual member function with a C++11 style function signature
Date: Mon, 13 Apr 2015 09:21:00 -0000	[thread overview]
Message-ID: <bug-65750-4-7Da8IcwEXj@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65750-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65750

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-13
      Known to work|                            |4.8.3
            Summary|miss interpret in a virtual |[4.9/5 Regression]
                   |member function with a      |misinterpret in a virtual
                   |C++11 style function        |member function with a
                   |signature                   |C++11 style function
                   |                            |signature
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Rejects-valid, introduced by support for C++14 return type deduction.


Reduced:

template<typename T> struct F { };

class a
{
  virtual auto f( F< void () > ) -> void;
  virtual auto g( F< auto () -> void > ) -> void;
};

auto main() -> int { }



The error in comment 0 is only on the 4.9 branch, 5.0 gives a different error:

s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
   virtual auto g( F< auto () -> void > ) -> void;
                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
s.cc:6:38: error: template argument 1 is invalid
   virtual auto g( F< auto () -> void > ) -> void;
                                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
   virtual auto g( F< auto () -> void > ) -> void;
                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
s.cc:6:38: error: template argument 1 is invalid
   virtual auto g( F< auto () -> void > ) -> void;
                                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
   virtual auto g( F< auto () -> void > ) -> void;
                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
s.cc:6:38: error: template argument 1 is invalid
   virtual auto g( F< auto () -> void > ) -> void;
                                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
   virtual auto g( F< auto () -> void > ) -> void;
                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
s.cc:6:38: error: template argument 1 is invalid
   virtual auto g( F< auto () -> void > ) -> void;
                                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
   virtual auto g( F< auto () -> void > ) -> void;
                      ^
s.cc:6:22: error: use of ‘auto’ in parameter declaration only available with
-std=c++14 or -std=gnu++14
s.cc:6:38: error: template argument 1 is invalid
   virtual auto g( F< auto () -> void > ) -> void;
                                      ^
s.cc:6:19: error: ‘F’ is not a type
   virtual auto g( F< auto () -> void > ) -> void;
                   ^
s.cc:6:20: error: expected ‘,’ or ‘...’ before ‘<’ token
   virtual auto g( F< auto () -> void > ) -> void;
                    ^
>From gcc-bugs-return-483471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 13 09:44:04 2015
Return-Path: <gcc-bugs-return-483471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14304 invoked by alias); 13 Apr 2015 09:44:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14230 invoked by uid 48); 13 Apr 2015 09:44:00 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/49551] tentative declaration after definition and -fdata-sections cause ICE in C front-end.
Date: Mon, 13 Apr 2015 09:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-49551-4-GFZsHTi4UC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49551-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49551-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg01023.txt.bz2
Content-length: 755

https://gcc.gnu.org/bugzilla/show_bug.cgi?idI551

prathamesh3492 at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|2015-03-23 00:00:00         |2015-04-13
                 CC|                            |charles.baylis at linaro dot org,
                   |                            |mkuvyrkov at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from prathamesh3492 at gcc dot gnu.org ---
Hi,
The ICE is not reproducible on the trunk any more. git bisect shows
it became non-reproducible after r221297.

Thank you,
Prathamesh


  reply	other threads:[~2015-04-13  9:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13  2:54 [Bug c++/65750] New: miss interpret " usagi at WonderRabbitProject dot net
2015-04-13  9:21 ` redi at gcc dot gnu.org [this message]
2015-04-13 20:58 ` [Bug c++/65750] [4.9/5 Regression] misinterpret " jason at gcc dot gnu.org
2015-04-13 21:20 ` abutcher at gcc dot gnu.org
2015-04-14  9:17 ` jakub at gcc dot gnu.org
2015-05-22 15:29 ` paolo.carlini at oracle dot com
2015-06-24 15:13 ` paolo.carlini at oracle dot com
2015-06-29  9:35 ` paolo at gcc dot gnu.org
2015-06-29  9:36 ` paolo.carlini at oracle dot com

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-65750-4-7Da8IcwEXj@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: link
Be 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).