public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block
@ 2010-09-01 13:35 mikedalpee at enginsol dot com
2010-09-01 13:36 ` [Bug c++/45481] " mikedalpee at enginsol dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-01 13:35 UTC (permalink / raw)
To: gcc-bugs
[root@localhost exception1]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/apps/gnu/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.6-20100828/configure --prefix=/apps/gnu
--disable-bootstrap --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-languages=c,c++ --with-ppl=/apps/gnu
--with-cloog=/apps/gnu --with-mpc=/apps/gnu --with-mpfr=/apps/gnu
--with-gmp=/apps/gnu --with-libelf=/apps/gnu --disable-multilib
--disable-werror
Thread model: posix
gcc version 4.6.0 20100828 (experimental) (GCC)
--
Summary: Exception is erroneously rethrown from a constructor
initializer try/catch block
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mikedalpee at enginsol dot com
GCC build triplet: x86_64-unknown-linux
GCC host triplet: x86_64-unknown-linux
GCC target triplet: x86_64-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
@ 2010-09-01 13:36 ` mikedalpee at enginsol dot com
2010-09-01 13:37 ` mikedalpee at enginsol dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-01 13:36 UTC (permalink / raw)
To: gcc-bugs
------- 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=21638&action=view)
Program that demonstrates the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
2010-09-01 13:36 ` [Bug c++/45481] " mikedalpee at enginsol dot com
@ 2010-09-01 13:37 ` mikedalpee at enginsol dot com
2010-09-01 13:38 ` mikedalpee at enginsol dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-01 13:37 UTC (permalink / raw)
To: gcc-bugs
------- 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=21639&action=view)
script that builds the bug program
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
2010-09-01 13:36 ` [Bug c++/45481] " mikedalpee at enginsol dot com
2010-09-01 13:37 ` mikedalpee at enginsol dot com
@ 2010-09-01 13:38 ` mikedalpee at enginsol dot com
2010-09-01 13:42 ` mikedalpee at enginsol dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-01 13:38 UTC (permalink / raw)
To: gcc-bugs
------- 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=21640&action=view)
output of the bug program
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
` (2 preceding siblings ...)
2010-09-01 13:38 ` mikedalpee at enginsol dot com
@ 2010-09-01 13:42 ` mikedalpee at enginsol dot com
2010-09-01 13:43 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-01 13:42 UTC (permalink / raw)
To: gcc-bugs
------- 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=21641&action=view)
Expected output of bug program
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
` (3 preceding siblings ...)
2010-09-01 13:42 ` mikedalpee at enginsol dot com
@ 2010-09-01 13:43 ` paolo dot carlini at oracle dot com
2010-09-01 13:49 ` paolo dot carlini at oracle dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-01 13:43 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
` (4 preceding siblings ...)
2010-09-01 13:43 ` paolo dot carlini at oracle dot com
@ 2010-09-01 13:49 ` paolo dot carlini at oracle dot com
2010-09-02 0:24 ` jason at gcc dot gnu dot org
2010-09-02 1:16 ` mikedalpee at enginsol dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-01 13:49 UTC (permalink / raw)
To: gcc-bugs
------- 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 |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
` (5 preceding siblings ...)
2010-09-01 13:49 ` paolo dot carlini at oracle dot com
@ 2010-09-02 0:24 ` jason at gcc dot gnu dot org
2010-09-02 1:16 ` mikedalpee at enginsol dot com
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-09-02 0:24 UTC (permalink / raw)
To: gcc-bugs
------- 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 that the object has not actually been created, so
trying to continue as though it had been would cause problems.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
` (6 preceding siblings ...)
2010-09-02 0:24 ` jason at gcc dot gnu dot org
@ 2010-09-02 1:16 ` mikedalpee at enginsol dot com
7 siblings, 0 replies; 9+ messages in thread
From: mikedalpee at enginsol dot com @ 2010-09-02 1:16 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-09-02 1:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01 13:35 [Bug c++/45481] New: Exception is erroneously rethrown from a constructor initializer try/catch block mikedalpee at enginsol dot com
2010-09-01 13:36 ` [Bug c++/45481] " mikedalpee at enginsol dot com
2010-09-01 13:37 ` mikedalpee at enginsol dot com
2010-09-01 13:38 ` mikedalpee at enginsol dot com
2010-09-01 13:42 ` mikedalpee at enginsol dot com
2010-09-01 13:43 ` paolo dot carlini at oracle dot com
2010-09-01 13:49 ` paolo dot carlini at oracle dot com
2010-09-02 0:24 ` jason at gcc dot gnu dot org
2010-09-02 1:16 ` mikedalpee at enginsol 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).