W8077 Explicitly specializing an explicitly specialized class member makes no sense (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Internal error. This warning is no longer generated by the compiler.

The following code is illegal:

template<class T> class foo { int x; }
template<> class foo<int> { int y; }
template<> int foo<int>::y;   // error: cannot explicitly specialize of 'foo<int>::x'