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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [pr39425.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/39425
2
// { dg-do compile }
3
 
4
class a {
5
 
6
  template
7
    struct _rec {
8
      static const char size = _rec< (s >> 1) >::size;
9
    };
10
 
11
  template<>    // { dg-error "explicit" }
12
  struct _rec <0> {
13
    static const char size = 0;
14
  };
15
 
16
  static const unsigned int value = _rec < 1 >::size;
17
 
18
} // { dg-error "after class definition" }

powered by: WebSVN 2.1.0

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