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++/16934] template-in-the-template explicit specialization, problem with inlined


------- Additional Comments From hidden_peak at mail dot ru  2004-08-10 13:51 -------
Nice, but there are not solution for gcc 3.4.1 for such code 
(no way to declare specialization): 
 
struct X 
{ 
        template<typename T> 
        struct Y 
        { 
                typedef char type; 
        }; 
 
 
        // template<> struct Y<int>; // <-- error, if uncommented 
        typedef Y<int>::type type; 
}; 
 
template<>            // <-- error, already instantiated 
struct X::Y<int> 
{ 
        typedef int type; 
}; 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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