This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[Mainline regression] ICE when throwing strings
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Oct 2002 12:23:23 +0200
- Subject: [Mainline regression] ICE when throwing strings
Hi,
we already have at least 4 PRs for this problem, so I just wanted to bring it
to attention in order to prevent GNATS from getting flooded with more PRs of
the same issue.
Throwing an exception that uses strings will cause an ICE on
mainline (just compile with g++ -O):
----------------------snip here--------------------
#include<string>
struct C
{
C (std::string) {}
};
void foo ()
{
throw C(std::string());
}
----------------------snip here--------------------
A reduced testcase can be found in PR 8186 and PR 7959.
PR 8325 and PR 8244 are probably the same bug.
Greetings,
Volker