public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/62241] New: C++14 generalized lambda capture doesn't work with uniform initialization syntax.
@ 2014-08-23 18:42 0xd34df00d at gmail dot com
  2014-08-23 18:43 ` [Bug c++/62241] " 0xd34df00d at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: 0xd34df00d at gmail dot com @ 2014-08-23 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 62241
           Summary: C++14 generalized lambda capture doesn't work with
                    uniform initialization syntax.
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0xd34df00d at gmail dot com

Created attachment 33386
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33386&action=edit
Failing code

Passing a lambda copying a value in its capture clause in a braced-init-list
causes the compiler to issue `error: 'foo' was not declared in this scope`,
where `foo` is the name of the copy.

Important part is the error only happens if using the uniform initialization
syntax. If the lambda is passed to a class ctor invoked via the standard '()'
syntax, everything works fine.

This is reproducible on 4.9.0 and 4.9.1 for me. I haven't had a chance to test
4.9.2 though.


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

end of thread, other threads:[~2015-01-20 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-23 18:42 [Bug c++/62241] New: C++14 generalized lambda capture doesn't work with uniform initialization syntax 0xd34df00d at gmail dot com
2014-08-23 18:43 ` [Bug c++/62241] " 0xd34df00d at gmail dot com
2014-08-23 18:54 ` pinskia at gcc dot gnu.org
2014-08-23 19:00 ` 0xd34df00d at gmail dot com
2014-08-23 19:03 ` 0xd34df00d at gmail dot com
2014-08-26 21:48 ` daniel.kruegler at googlemail dot com
2014-12-14  0:06 ` ville.voutilainen at gmail dot com
2015-01-20 11:59 ` paolo.carlini at oracle dot com
2015-01-20 11:59 ` paolo 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).