repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
crash56.C
blob
6da84f8a78ec9413256458ec3ff8370d60a6ea60
1
/* PR c++/43081 */
2
/* { dg-do compile { target c++11 } } */
3
4
struct A
5
{
6
typedef void (F)();
7
F f = []{}; /* { dg-error "invalid pure" } */
8
};
9
10
struct B
11
{
12
typedef void (F)();
13
F f = 1; /* { dg-error "invalid pure" } */
14
virtual F f2 = 2; /* { dg-error "invalid pure" } */
15
F f3 = 3; /* { dg-error "invalid pure" } */
16
};