This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29767] partial specialization enclosed templates within the declaration of the enclosed class.



------- Comment #7 from bangerth at dealii dot org  2006-11-09 05:35 -------
(In reply to comment #0)
> gcc and msvc accept such code but produces different results.
> is this code (in)valid? i'm not sure what behaviour is correct.

The code is valid because it is a *partial* specialization of the member
template class. It would be invalid if it were a *complete* specialization.
In that case, the complete specialization would have to be declared outside
the outer class, i.e. at namespace scope.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29767


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]