Commit a64f294e by Jason Merrill

new

From-SVN: r23849
parent 32201ce4
struct A
{
A();
A(A&); // ERROR - referenced below
};
int
main ()
{
try
{
throw A(); // ERROR - can't copy
}
catch (...) { }
}
// From: lat@iki.fi (Lassi A. Tuura)
// Test that a specialization without an initializer is not a definition,
// as specified in [temp.expl.spec].
// Build don't link:
struct X;
template <class T> struct Y { static const X array[]; };
template <> const X Y<int>::array [];
struct X { int i; };
template <> const X Y<int>::array [] = { 0, 1, 2, 3 };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment