URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr41183.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/41183
// { dg-do compile }
void foo (const char *);
template <int *>
struct A
{
template <typename T> A (const int &, T);
int i;
};
template <int *X>
template <typename T>
A<X>::A (const int &j, T) : i(j)
{
foo (0);
foo (0);
foo (__PRETTY_FUNCTION__);
}
int N;
struct B
{
B ();
A<&N> a;
};
B::B() : a(N, 0) {}
Go to most recent revision | Compare with Previous | Blame | View Log