[Bug tree-optimization/30558] ICE with OpenMP and exceptions
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 24 11:45:00 GMT 2007
------- Comment #7 from jakub at gcc dot gnu dot org 2007-04-24 12:45 -------
Even more reduced testcase:
static int s = 6;
template <typename T> struct F
{
~F () {}
F (T x) {}
const T &operator[] (unsigned i) const { return s; }
};
template <typename T> F<T> foo (const F<T> &x)
{
return F<T> (x[1]);
}
static F<int> z = 6;
struct G
{
G () { bar (2); }
F<int> &operator () (F<int> x) { return z; }
void bar (int);
};
int
main ()
{
try
{
G g;
#pragma omp parallel for
for (int i = 0; i < 10; ++i)
{
F<int> j (i);
F<int> f = g (j);
F<int> h = foo (f);
}
}
catch (int &e)
{
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30558
More information about the Gcc-bugs
mailing list