Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem20.C
blob: 74713a72192be8c0780ce821c4dd143e0d15fb3d [
file
] [
log
] [
blame
]
// PR c++/43079
struct
A
{};
struct
B
{
void
foo
()
const
;
void
foo
();
};
template
<
void
(
A
::*)()>
void
bar
();
// { dg-message "note" }
void
baz
()
{
bar
<&
B
::
foo
>();
// { dg-error "template argument|no match|convert" }
}