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-13.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Origin PR c++/51191
2
// { dg-options "-std=c++0x" }
3
 
4
template< class T >
5
class ClassTemplate {};
6
 
7
template< class T >
8
struct Metafunction {
9
  typedef T type;
10
};
11
 
12
template< class T >
13
using TemplateAlias = ClassTemplate< typename Metafunction::type >;
14
 
15
using Alias = TemplateAlias;
16
 
17
template< class T >
18
void f( TemplateAlias );
19
 
20
int main()
21
{
22
  Alias x;
23
  f( x ); // { dg-error "no matching function for call to|f" }
24
}

powered by: WebSVN 2.1.0

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