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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44628
2
 
3
template 
4
class Temp
5
{
6
  int Val;
7
  public:
8
  operator T&(void)  { return Val; }
9
 
10
  virtual T& operator=(T a ) // { dg-error "overriding" }
11
  {
12
    Val = a;
13
    return Val;
14
  }
15
};
16
 
17
class Int : public Temp
18
{
19
  public:
20
  Int& operator=(int a) // { dg-error "conflicting return type" }
21
  {
22
    return (*this);
23
  }
24
};

powered by: WebSVN 2.1.0

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