public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56388] New: catch(...) in lambda rejected
@ 2013-02-19  6:24 omawarisan.bokudesu at live dot jp
  2013-02-19  9:24 ` [Bug c++/56388] " daniel.kruegler at googlemail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: omawarisan.bokudesu at live dot jp @ 2013-02-19  6:24 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56388
           Summary: catch(...) in lambda rejected
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: omawarisan.bokudesu@live.jp


"g++ -std=c++11" rejects the following program:

int main()
{
    bool /*const*/ condition = false;

    [&]{
        try{}
        catch(...){
            if(condition){}
        }
    }();
}

If the condition variable is const, the compilation successes.

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/user/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/home/user/gcc-trunk
--disable-bootstrap --disable-multilib --enable-languages=c,c++,fortran
--with-gmp=/home/user/gcc-trunk/src/build/backends
--with-mpfr=/home/user/gcc-trunk/src/build/backends
--with-mpc=/home/user/gcc-trunk/src/build/backends
Thread model: posix
gcc version 4.8.0 20130219 (experimental) (GCC)


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

* [Bug c++/56388] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
@ 2013-02-19  9:24 ` daniel.kruegler at googlemail dot com
  2013-04-09 23:51 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-02-19  9:24 UTC (permalink / raw)
  To: gcc-bugs


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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2013-02-19 09:23:34 UTC ---
The problem also exists for 4.7.2, so no regression. The diagnostics is
interesting:

"7:9: error: '...' handler must be the last handler for its try block
[-fpermissive]
catch(...){
^"


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

* [Bug c++/56388] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
  2013-02-19  9:24 ` [Bug c++/56388] " daniel.kruegler at googlemail dot com
@ 2013-04-09 23:51 ` paolo.carlini at oracle dot com
  2013-04-11 21:52 ` [Bug c++/56388] [4.7/4.8/4.9 regression] " jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-04-09 23:51 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-09
             Blocks|                            |54367
     Ever Confirmed|0                           |1


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

* [Bug c++/56388] [4.7/4.8/4.9 regression] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
  2013-02-19  9:24 ` [Bug c++/56388] " daniel.kruegler at googlemail dot com
  2013-04-09 23:51 ` paolo.carlini at oracle dot com
@ 2013-04-11 21:52 ` jason at gcc dot gnu.org
  2013-04-11 22:13 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-11 21:52 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
   Target Milestone|---                         |4.7.4
            Summary|catch(...) in lambda        |[4.7/4.8/4.9 regression]
                   |rejected                    |catch(...) in lambda
                   |                            |rejected

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-11 21:52:36 UTC ---
It's a regression from 4.6.


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

* [Bug c++/56388] [4.7/4.8/4.9 regression] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
                   ` (2 preceding siblings ...)
  2013-04-11 21:52 ` [Bug c++/56388] [4.7/4.8/4.9 regression] " jason at gcc dot gnu.org
@ 2013-04-11 22:13 ` jason at gcc dot gnu.org
  2013-04-16 20:30 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-11 22:13 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c++/56388] [4.7/4.8/4.9 regression] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
                   ` (3 preceding siblings ...)
  2013-04-11 22:13 ` jason at gcc dot gnu.org
@ 2013-04-16 20:30 ` jason at gcc dot gnu.org
  2013-05-02 12:02 ` paolo.carlini at oracle dot com
  2013-07-26 16:25 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-16 20:30 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-16 20:30:12 UTC ---
Fixed for 4.7.4/4.8.1/4.9.0.


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

* [Bug c++/56388] [4.7/4.8/4.9 regression] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
                   ` (4 preceding siblings ...)
  2013-04-16 20:30 ` jason at gcc dot gnu.org
@ 2013-05-02 12:02 ` paolo.carlini at oracle dot com
  2013-07-26 16:25 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-02 12:02 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pichot.fabien at gmail dot
                   |                            |com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-02 12:02:19 UTC ---
*** Bug 57143 has been marked as a duplicate of this bug. ***


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

* [Bug c++/56388] [4.7/4.8/4.9 regression] catch(...) in lambda rejected
  2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
                   ` (5 preceding siblings ...)
  2013-05-02 12:02 ` paolo.carlini at oracle dot com
@ 2013-07-26 16:25 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-26 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |devcontrib4590 at gmail dot com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 57995 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2013-07-26 16:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-19  6:24 [Bug c++/56388] New: catch(...) in lambda rejected omawarisan.bokudesu at live dot jp
2013-02-19  9:24 ` [Bug c++/56388] " daniel.kruegler at googlemail dot com
2013-04-09 23:51 ` paolo.carlini at oracle dot com
2013-04-11 21:52 ` [Bug c++/56388] [4.7/4.8/4.9 regression] " jason at gcc dot gnu.org
2013-04-11 22:13 ` jason at gcc dot gnu.org
2013-04-16 20:30 ` jason at gcc dot gnu.org
2013-05-02 12:02 ` paolo.carlini at oracle dot com
2013-07-26 16:25 ` paolo.carlini at oracle 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).