[Bug c++/11489] [3.4 Regression] ICE/segfault on legal code
neroden at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 12 20:45:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11489
------- Additional Comments From neroden at gcc dot gnu dot org 2003-07-12 20:45 -------
I cut the testcase down to this:
template< bool B , typename T1 > struct if_c {};
template< typename C , typename T2 > struct foo
{
typedef
if_c<
static_cast<bool>(C::value)
,
T2
>
almost_type_;
};
This seems to be the line on which it's failing:
static_cast<bool>(C::value)
What is this supposed to mean, anyway? C is a *typename*. I assume 'value' has to be something which is the same for all instances of the type?
(How would that be done anyway?) :-/ Is this code even valid?
More information about the Gcc-bugs
mailing list