Commit 0ecba51f by Alexandre Oliva

tweaks

From-SVN: r31063
parent 200a1a6d
......@@ -4,7 +4,7 @@
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// bug report by Martin Sebor <sebor@roguewave.com>
// from C++ Standard [temp.expl.spec]/5
// based on C++ Standard example in [temp.expl.spec]/5
/* Members of explicitly specialized template classes shall not be
defined with template-specialization syntax. The example in the
......@@ -15,8 +15,8 @@
template<class T> struct A {};
template<> struct A<int> {
static const bool a, b;
static bool a, b;
};
const bool A<int>::a; // ok
template<> const bool A<int>::b; // ERROR - bad specialization - XFAIL *-*-*
bool A<int>::a = true; // ok
template<> bool A<int>::b = false; // ERROR - XFAIL *-*-*
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