OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/52685
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof5.C
1
// PR c++/9907
2
// Origin: nes@lrde.epita.fr
3
// sizeof(foo()) was not considered constant.
4
5
6
template <unsigned n> struct bar {};
7
8
int foo();
9
10
template <class T>
11
void baz()
12
{
13
bar<sizeof(foo())> b;
14
}
15