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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [ptrmem7.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// Origin: 
3
// c++/2094: unsupported 'ptrmem_cst' in type unification
4
 
5
struct R
6
{
7
  int i;
8
};
9
 
10
struct S
11
{
12
  int i;
13
  int j;
14
};
15
 
16
struct S2 : S
17
{};
18
 
19
template
20
struct X
21
{
22
  X ();
23
  template X(const X &);
24
};
25
 
26
X<&S::i,S> x  = X<&S::i,S>();
27
X<&S::i,S> x2 = X<&S2::i,S>();
28
X<&S::i,S> y  = X<&S::j,S>();  // { dg-error "" }
29
X<&S::i,S> z  = X<&R::i,S>();  // { dg-error "" }

powered by: WebSVN 2.1.0

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