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/] [crash51.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/26496
2
 
3
template< typename _Generator> int generate_n(_Generator __gen);
4
struct Distribution { };
5
typedef double (Distribution::* Pstd_mem)();
6
int main(void)
7
{
8
  Distribution* rng;
9
  Pstd_mem ptr;
10
  generate_n(rng->*ptr); // { dg-error "non-static member" }
11
}

powered by: WebSVN 2.1.0

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