This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2006 14:08:20 -0000
- Subject: [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template
- References: <bug-28235-8311@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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