URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [sizeof5.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log