Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof5.C
blob: 4096fed5329ccca978cb1dd2c2800be509e23e2c [
file
] [
log
] [
blame
]
// PR c++/9907
// Origin: nes@lrde.epita.fr
// sizeof(foo()) was not considered constant.
template
<
unsigned
n
>
struct
bar
{};
int
foo
();
template
<
class
T
>
void
baz
()
{
bar
<
sizeof
(
foo
())>
b
;
}