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] - Rev 801

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

// PR c++/39425
// { dg-do compile }

class a {

  template<unsigned int s>
    struct _rec {
      static const char size = _rec< (s >> 1) >::size;
    };

  template<>    // { dg-error "explicit" }
  struct _rec <0> {
    static const char size = 0;
  };

  static const unsigned int value = _rec < 1 >::size;

} // { dg-error "after class definition" }

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.