public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59766] New: c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason
@ 2014-01-10 23:59 mizvekov at gmail dot com
  2014-01-19 10:51 ` [Bug c++/59766] " lucdanton at free dot fr
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: mizvekov at gmail dot com @ 2014-01-10 23:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59766
           Summary: c++1y: declaring friend function with 'auto' return
                    type deduction is rejected with bogus reason
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mizvekov at gmail dot com

Simple example showing the problem:

struct foo {
    friend auto test(const foo &) { return 0; }
};

g++ rejects this with:

test.cc:2:30: error: non-static data member declared ‘auto’
  friend auto test(const foo &) { return 0; }
>From gcc-bugs-return-440067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jan 11 00:01:17 2014
Return-Path: <gcc-bugs-return-440067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27608 invoked by alias); 11 Jan 2014 00:01:17 -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 27586 invoked by uid 48); 11 Jan 2014 00:01:14 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/47888] [4.6 Regression] tree check: expected array_type, have record_type in array_ref_low_bound, at expr.c:6249 / Segmentation fault
Date: Sat, 11 Jan 2014 00:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: ice-on-invalid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-47888-4-7c71fKxsr4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47888-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: 2014-01/txt/msg01209.txt.bz2
Content-length: 471

http://gcc.gnu.org/bugzilla/show_bug.cgi?idG888

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We don't support 4.6 anymore so if this is only 4.6 thing, we can't do much
about it.


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

end of thread, other threads:[~2015-04-23 13:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 23:59 [Bug c++/59766] New: c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason mizvekov at gmail dot com
2014-01-19 10:51 ` [Bug c++/59766] " lucdanton at free dot fr
2014-01-24 11:28 ` paolo.carlini at oracle dot com
2014-01-24 11:49 ` paolo.carlini at oracle dot com
2014-06-28 22:35 ` felix at fontein dot de
2014-12-05 15:06 ` redi at gcc dot gnu.org
2015-01-23  9:32 ` potswa at mac dot com
2015-01-23  9:44 ` potswa at mac dot com
2015-04-09  5:44 ` glisse at gcc dot gnu.org
2015-04-09 19:04 ` potswa at mac dot com
2015-04-10 19:29 ` jason at gcc dot gnu.org
2015-04-14 15:30 ` jason at gcc dot gnu.org
2015-04-22 20:53 ` jason at gcc dot gnu.org
2015-04-22 20:53 ` jason at gcc dot gnu.org
2015-04-23 13:21 ` jason at gcc dot gnu.org
2015-04-23 13:23 ` jason 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).