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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash41.C] - Rev 816

Compare with Previous | Blame | View Log

// PR c++/22464

template<typename T>
void do_something(const T* A) // { dg-error "declared" }
{ 
  struct helper_t{ 
    helper_t() {  
      A[0]; // { dg-error "use" }
    }
  } helper;
}

void sub1() {
  double A[7];
  do_something (A);
}

  

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.