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] - Blame information for rev 718

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

Line No. Rev Author Line
1 693 jeremybenn
// Origin PR c++/45625
2
// { dg-do compile }
3
 
4
struct Outer
5
{
6
  static const int value = 1 ;
7
 
8
  template< int value >
9
  struct Inner
10
  {
11
    static const int*
12
    get_value()
13
    {
14
      return &value ;// { dg-error "lvalue required" }
15
    }
16
  };
17
};
18
 
19
template class Outer::Inner<2>;

powered by: WebSVN 2.1.0

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