Commit 8034bcbe by Richard Biener Committed by Richard Biener

re PR c++/56768 ([4.7] ICE in make_decl_rtl, at varasm.c:1147)

2013-04-02  Richard Biener  <rguenther@suse.de>

	PR middle-end/56768
	* g++.dg/torture/pr56768.C: New testcase.

From-SVN: r197349
parent 73243d63
2013-04-02 Richard Biener <rguenther@suse.de>
PR middle-end/56768
* g++.dg/torture/pr56768.C: New testcase.
2013-04-02 Paolo Carlini <paolo.carlini@oracle.com>
* obj-c++.dg/try-catch-13.mm: Update per PR56725.
......
// { dg-do compile }
// { dg-options "-std=c++0x" }
struct Iter
{
int& operator* ();
void operator++ ();
};
bool operator!= (Iter &, Iter &) { }
struct Container
{
Iter begin () const;
Iter end () const;
};
struct J
{
virtual J *mutable_child ();
};
struct M
{
M (const Container &);
J ns_;
};
namespace
{
J MakeNamespace (const Container &src)
{
J a;
J *b = 0;
for (const int &c: src)
b = b ? b->mutable_child () : &a;
return a;
}
}
M::M (const Container &ns):ns_ (MakeNamespace (ns))
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment