URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-static5.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options -std=c++0x }
template <class T>
struct A
{
constexpr static T t = T(); // { dg-error "literal" }
};
template <class T>
constexpr T A<T>::t;
struct B
{
~B();
};
B b = A<B>::t;
Go to most recent revision | Compare with Previous | Blame | View Log