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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [hidden-var1.C] - Rev 774

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

// Origin PR c++/45625
// { dg-do compile }

struct Outer
{
  static const int value = 1 ;

  template< int value >
  struct Inner
  {
    static const int*
    get_value()
    { 
      return &value ;// { dg-error "lvalue required" }
    }
  };
};

template class Outer::Inner<2>;

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.