public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-23257-332@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/23257] New: Incorrect exception-handling behavior with references
@ 2005-08-06  0:25 mmitchel at gcc dot gnu dot org
  2005-08-06  6:09 ` [Bug c++/23257] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-06  0:25 UTC (permalink / raw)
  To: gcc-bugs

This program

===
struct Base {};
struct Derived : virtual Base {};

Derived derived;
Base base;

int main() {
  Base *b = &derived;

  try {
    try {
      throw b;
    } catch (Base*& br) {
      br = &base;
      throw;
    }
  } catch (Base*& br) {
    if (br != &base)
      return 1;
  }
}
===

should exit with code zero, but does not.

-- 
           Summary: Incorrect exception-handling behavior with references
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mmitchel at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2021-08-09 23:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23257-4@http.gcc.gnu.org/bugzilla/>
2021-08-09 18:09 ` [Bug c++/23257] Incorrect exception-handling behavior with references pinskia at gcc dot gnu.org
2021-08-09 23:14 ` redi at gcc dot gnu.org
     [not found] <bug-23257-332@http.gcc.gnu.org/bugzilla/>
2005-10-17 15:05 ` pinskia at gcc dot gnu dot org
2008-01-16 12:32 ` chris dot rimmer at antixlabs dot com
2008-01-17 10:09 ` chris dot rimmer at antixlabs dot com
2008-01-20 20:47 ` mmitchel at gcc dot gnu dot org
2009-08-25 13:58 ` bangerth at gmail dot com
2005-08-06  0:25 [Bug c++/23257] New: " mmitchel at gcc dot gnu dot org
2005-08-06  6:09 ` [Bug c++/23257] " pinskia at gcc dot gnu dot 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).