public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61133] New: g++ doesn't implement DR1760
@ 2014-05-09 20:48 ville.voutilainen at gmail dot com
  2014-05-19 19:09 ` [Bug c++/61133] " ville.voutilainen at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-05-09 20:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61133
           Summary: g++ doesn't implement DR1760
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ville.voutilainen at gmail dot com

Testcase:

int main()
{
 auto x = [y = 5](){}; 
 auto z = x.y;
}

The member should not be usable. The most recent WP says
"An init-capture behaves as if it declares and explicitly captures a variable
of the form “auto init-capture ;”
whose declarative region is the lambda-expression’s compound-statement"

and the previous WP said the name of the captured variable should be unique.
See http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#1760

I think it was always the intent of captures (including init-captures) that
they do not behave like public members of a class.
>From gcc-bugs-return-451184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 09 20:49:37 2014
Return-Path: <gcc-bugs-return-451184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2182 invoked by alias); 9 May 2014 20:49:37 -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 2124 invoked by uid 48); 9 May 2014 20:49:33 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/60887] [4.10 Regression] LTO bootstrap failed with profiledbootstrap
Date: Fri, 09 May 2014 20:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-60887-4-sB9eyHPx9i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60887-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60887-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-05/txt/msg00876.txt.bz2
Content-length: 445

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`887

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Bootstrap worked since wide-int merge.


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

* [Bug c++/61133] g++ doesn't implement DR1760
  2014-05-09 20:48 [Bug c++/61133] New: g++ doesn't implement DR1760 ville.voutilainen at gmail dot com
@ 2014-05-19 19:09 ` ville.voutilainen at gmail dot com
  2014-09-18  9:49 ` paolo.carlini at oracle dot com
  2014-09-18 10:02 ` ville.voutilainen at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-05-19 19:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Patch is in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00656.html


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

* [Bug c++/61133] g++ doesn't implement DR1760
  2014-05-09 20:48 [Bug c++/61133] New: g++ doesn't implement DR1760 ville.voutilainen at gmail dot com
  2014-05-19 19:09 ` [Bug c++/61133] " ville.voutilainen at gmail dot com
@ 2014-09-18  9:49 ` paolo.carlini at oracle dot com
  2014-09-18 10:02 ` ville.voutilainen at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-09-18  9:49 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thus done, right?


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

* [Bug c++/61133] g++ doesn't implement DR1760
  2014-05-09 20:48 [Bug c++/61133] New: g++ doesn't implement DR1760 ville.voutilainen at gmail dot com
  2014-05-19 19:09 ` [Bug c++/61133] " ville.voutilainen at gmail dot com
  2014-09-18  9:49 ` paolo.carlini at oracle dot com
@ 2014-09-18 10:02 ` ville.voutilainen at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-09-18 10:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Yep, done.


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

end of thread, other threads:[~2014-09-18 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-09 20:48 [Bug c++/61133] New: g++ doesn't implement DR1760 ville.voutilainen at gmail dot com
2014-05-19 19:09 ` [Bug c++/61133] " ville.voutilainen at gmail dot com
2014-09-18  9:49 ` paolo.carlini at oracle dot com
2014-09-18 10:02 ` ville.voutilainen at gmail dot com

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