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
[PATCH 2/2 v2] RISC-V: Constant synthesis of inverted halves
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
static14.C
blob
5bc0e731ac34665b994362f61db24ca6c960ddca
1
struct Base {
2
int x;
3
};
4
5
template <typename T>
6
struct A {
7
static const int N = sizeof(static_cast<Base*>(T()));
8
int a[N];
9
};
10
11
struct Derived : Base {
12
A<Derived*> a;
13
};