Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
crash-7.C
blob: d96aeead0727da0722e8f4a821787da7c37fc638 [
file
] [
log
] [
blame
]
// Origin: PR c++/42336
// { dg-options "-O2 -g" }
// { dg-do compile { target c++11 } }
struct
X
{
void
func
()
{}
};
template
<
typename
T
,
void
(
X
::*
P
)()
=
&
T
::
func
>
void
b
(
T
)
{}
int
main
()
{
b
(
X
());
/* line 9 */
X
().
func
();
return
0
;
}