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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [error42.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++/40372
2
// { dg-do compile }
3
 
4
template  struct A
5
{
6
  int i;                // { dg-error "invalid use of non-static data member" }
7
  friend void foo ()
8
  {
9
    int x[i];           // { dg-error "from this location" }
10
  }
11
};
12
 
13
struct B
14
{
15
  int j;                // { dg-error "invalid use of non-static data member" }
16
  friend int bar ()
17
  {
18
    return j;           // { dg-error "from this location" }
19
  }
20
};

powered by: WebSVN 2.1.0

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