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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/39608
2
// We were improperly considering dependent members of the current
3
// instantiation to be non-constant (and therefore invalid template
4
// non-type arguments).
5
 
6
template 
7
struct C {};
8
 
9
template 
10
struct A
11
{
12
  static const T x = 1;
13
  C::x> c;                      // { dg-bogus "invalid" }
14
};
15
 
16
A a;

powered by: WebSVN 2.1.0

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