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 742
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