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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44587
2
 
3
template  struct A { };
4
template  struct B {
5
  static const int c; // { dg-message "not initialized with a constant expression" }
6
  typedef A::c> C;      // { dg-error "constant expression|template argument" }
7
};
8
template  const int B::c = sizeof (T);
9
 
10
template  struct D { };
11
template  struct E {
12
  static const int c = sizeof (T);
13
  typedef D::c> F;              // OK
14
};

powered by: WebSVN 2.1.0

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