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++/13810] [3.4/3.5 Regression] ICE on invalid default templates


------- Additional Comments From bangerth at dealii dot org  2004-01-22 15:46 -------
Confirmed. The code is invalid: 
---------------------- 
template<typename> struct S {}; 
template<typename A, 
         template <typename> class B = S<A> > struct X{}; 
---------------------- 
The default argument should of course be S, not S<A>. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-22 15:46:55
               date|                            |
            Summary|[3.4/3.5 Regression] ICE on |[3.4/3.5 Regression] ICE on
                   |default templates           |invalid default templates


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


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