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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-11.C] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

// Origin: PR c++/43327
// { dg-do compile }

template <typename _T>
struct A
{
  template <int _N, int _M> struct B;

  template <int _N>
  struct B<_N, _T::m>
  {
     static void f();
  };
};

struct C
{
  static int m;
};

void m()
{
  A<C>::B<1, 4>::f(); // { dg-error "incomplete type|not a valid" }
}

int C::m = 4;

Go to most recent revision | 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.