[MacPorts] #23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception ---------------------------------------+------------------------------------ Reporter: bumens@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: icu UnicodeString C++ bug | Port: icu ---------------------------------------+------------------------------------ {{{ vb@bayhorse:~/icu-bug % cat test1.cc #include <unicode/unistr.h> #include <iostream> void f() { UnicodeString s(""); throw 23; } int main(int argc, char **argv) { try { f(); } catch (...) { std::cout << "catched.\n"; } return 0; } vb@bayhorse:~/icu-bug % cat test2.cc #include <unicode/unistr.h> #include <iostream> void f() { { UnicodeString s; } throw 23; } int main(int argc, char **argv) { try { f(); } catch (...) { std::cout << "catched.\n"; } return 0; } vb@bayhorse:~/icu-bug % make g++-mp-4.4 -fexceptions -L/opt/local/lib -licuuc test1.cc -o test1 g++-mp-4.4 -fexceptions -L/opt/local/lib -licuuc test2.cc -o test2 vb@bayhorse:~/icu-bug % ./test1 [1] 66078 abort ./test1 vb@bayhorse:~/icu-bug % ./test2 catched. vb@bayhorse:~/icu-bug % uname -a Darwin bayhorse.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 i386 vb@bayhorse:~/icu-bug % g++-mp-4.4 --version g++-mp-4.4 (GCC) 4.4.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. vb@bayhorse:~/icu-bug % port installed icu The following ports are currently installed: icu @4.3.3_0 (active) vb@bayhorse:~/icu-bug % }}} -- Ticket URL: <http://trac.macports.org/ticket/23604> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * keywords: icu UnicodeString C++ bug => * owner: macports-tickets@… => nox@… -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Comment(by nox@…): I'm pretty sure you should report this upstream instead of here. -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Comment(by bumens@…): Actually I did report it upstream already. I was unsure if I should report it here, too, so I did additionally. -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Comment(by nox@…): Could you give us the upstream ticket number? -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Comment(by bumens@…): Yes, of course: #7410, see http://bugs.icu-project.org/trac/ticket/7410 And yes, I forgot the {{{ }}} again ;-) -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Comment(by jmr@…): Upstream report was closed "worksforme", FWIW. -- Ticket URL: <http://trac.macports.org/ticket/23604#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception --------------------------------+------------------------------------------- Reporter: bumens@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: icu --------------------------------+------------------------------------------- Changes (by jmr@…): * owner: nox@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/23604#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23604: C++ Destructor of UnicodeString throws exception if local in block with a throw of another exception ---------------------------------+------------------------------------------ Reporter: bumens@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: wontfix | Keywords: Port: icu | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => wontfix Comment: Closing as this appears to be a FSF GCC bug. -- Ticket URL: <https://trac.macports.org/ticket/23604#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts