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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [ptrmem1.C] - Blame information for rev 754

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 2 Aug 2003 
5
 
6
// PR 11766. ICE
7
 
8
template
9
struct normal_iterator
10
{
11
  normal_iterator(const T& __i);
12
};
13
 
14
 
15
template
16
struct vector
17
{
18
  void end() const {  normal_iterator (this->pt); }
19
  void size() const { end(); }
20
  _Tp* pt;
21
};
22
 
23
 
24
 
25
struct MuonTag {
26
  typedef void (MuonTag::*Selector)();
27
};
28
 
29
void foo()
30
{
31
  vector _selectors;
32
  _selectors.size();
33
}

powered by: WebSVN 2.1.0

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