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

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