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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aggr-base2a.C
blob
ceeb6d8f120cf838bc8aa545ed0065110a707b92
1
// { dg-do compile { target c++11 } }
2
3
struct derived;
4
struct base {
5
friend struct derived;
6
private:
7
base();
8
};
9
struct derived : base {};
10
11
derived d1{}; // { dg-error "" "" { target c++17 } }
12
derived d2; // still OK