OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [ice1.C] - Rev 301

Compare with Previous | Blame | View Log

// PR c++/43024
// { dg-options "-O2" }

void foo();

template<int> struct X
{
  enum { e };
  typedef int Y;
};

template<int N = 0> struct A
{
  ~A() { foo(); }
  A() { a<0>(0); }
  template<int> void a(typename X<!X<N>::e>::Y);
  struct B b();
};

struct B
{
  A<> b0, b1, b2, b3;
  B operator+ (const B&);
};

struct C
{
  A<> c0, c1, c2, c3, c4, c5, c6, c7, c8;
};

inline void bar(int i)
{
  A<> a0, a1;
  if (i) a0.b() + a0.b() + a0.b() + a0.b();
}

void baz()
{
  C c;
  bar(0);
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.