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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wextra-2.C
blob
5ca41c39d938414414550522256864926f3af2df
1
// { dg-options "-Wextra" }
2
3
struct S {
4
S();
5
};
6
7
struct T {
8
private:
9
int i;
10
public:
11
// There should be no warning about this data member because the
12
// default constructor for "T" will invoke the default constructor
13
// for "S", even though "S" is "const".
14
const S s; // { dg-bogus "const" }
15
};