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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-4.C] - Blame information for rev 707

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
// [temp.alias]/3:
4
// The type-id in an alias template declaration shall not refer
5
// to the alias template being declared. The type produced by an
6
// alias template specialization shall not directly or indirectly
7
// make use of that specialization.
8
 
9
template  struct A;
10
template  using B = typename A::U; // { dg-error "type" }
11
template  struct A {
12
    typedef B U;
13
};
14
B b; // { dg-error "invalid type" }

powered by: WebSVN 2.1.0

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