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++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-07-12 14:08 -------
Even shorter (valid) testcase:

=========================================
template<typename> struct A
{
    static const bool i = true;
    template<bool = i> struct B {};
    B<> b;
};
=========================================

This crashes since GCC 4.0.3 and was rejected by GCC 3.4.0 - 4.0.2.


-- 


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


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