[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread mikedalpee at enginsol dot com
--- Comment #1 from mikedalpee at enginsol dot com 2010-09-01 13:36 --- Created an attachment (id=21638) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21638action=view) Program that demonstrates the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread mikedalpee at enginsol dot com
--- Comment #2 from mikedalpee at enginsol dot com 2010-09-01 13:36 --- Created an attachment (id=21639) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21639action=view) script that builds the bug program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread mikedalpee at enginsol dot com
--- Comment #3 from mikedalpee at enginsol dot com 2010-09-01 13:38 --- Created an attachment (id=21640) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21640action=view) output of the bug program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread mikedalpee at enginsol dot com
--- Comment #4 from mikedalpee at enginsol dot com 2010-09-01 13:41 --- Created an attachment (id=21641) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21641action=view) Expected output of bug program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Severity|critical|normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-09-01 13:49 --- For the record, building with ICC gives the same behavior of GCC. Let's ask Jason' opinion about this. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2010-09-02 00:24 --- This is standard-conformant behavior. 15.3/15: The currently handled exception is rethrown if control reaches the end of a handler of the function-try-block of a constructor or destructor. The rationale for this is

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread mikedalpee at enginsol dot com
--- Comment #7 from mikedalpee at enginsol dot com 2010-09-02 01:16 --- Ah, ok, that makes good sense. Thanks for the clarification. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481