This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24996] [4.0/4.1/4.2 Regression] ICE on throw code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2005 05:09:52 -0000
- Subject: [Bug c++/24996] [4.0/4.1/4.2 Regression] ICE on throw code
- References: <bug-24996-8383@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-11-23 05:09 -------
Reduced testcase:
struct allocator {
~allocator();
};
struct string {
string(int, const allocator& __a = allocator());
};
struct logic_error {
logic_error(const string& __arg);
};
void foo(bool b) {
throw b ? logic_error(0) : logic_error(0);
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC target triplet|i686-pc-linux-gnu |
Known to fail| |4.0.0 4.1.0 4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2005-11-23 05:09:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24996