URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash56.C] - Rev 717
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR c++/43081 */
/* { dg-do compile } */
/* { dg-options "-std=c++0x" } */
struct A
{
typedef void (F)();
F f = []{}; /* { dg-error "invalid pure" } */
};
struct B
{
typedef void (F)();
F f = 1; /* { dg-error "invalid pure" } */
virtual F f2 = 2; /* { dg-error "invalid pure" } */
F f3 = 3; /* { dg-error "invalid pure" } */
};
Go to most recent revision | Compare with Previous | Blame | View Log