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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr71979.C
blob
e67eed111ac25e6ea9f9768e2da75266167b9467
1
// PR c++/71979
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A & operator= (A &);
7
};
8
9
struct B : A {}; // { dg-error "cannot bind" }
10
11
void foo ()
12
{
13
B b;
14
b = B (); // { dg-error "use of deleted" }
15
}