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
c++: Fix get_member_function_from_ptrfunc with -fsanitize=bounds [PR116449]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
bitfield3.C
blob
efff2ec993e1180506e40ee2a8b07611a77037d4
1
/* PR c++/35320 */
2
/* { dg-do compile } */
3
4
typedef void (func_type)();
5
6
struct A
7
{
8
friend func_type f : 2; /* { dg-error "20:bit-field .void f\\(\\). with non-integral type .func_type." } */
9
};