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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
ptrfn2.C
blob
0ca922b9c38fd6e24ee6e56df4c39b46748cd9e8
1
// { dg-options "" }
2
// { dg-do compile }
3
// C++/30221
4
// We would ICE while trying to reshape the pointer to
5
// member function element which is not needed.
6
7
8
class abstract {};
9
typedef void (abstract::*fptr1) (short & s ) const;
10
struct s {};
11
s array[] =
12
{
13
(fptr1)0
14
};// { dg-error "" }