This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11489] [3.4 Regression] ICE on typecast of template-argument-derived value as template argument
- From: "numerical dot simulation at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2003 07:30:41 -0000
- Subject: [Bug c++/11489] [3.4 Regression] ICE on typecast of template-argument-derived value as template argument
- References: <20030710141450.11489.numerical.simulation@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 numerical dot simulation at web dot de 2003-07-14 07:30 -------
Subject: Re: [3.4 Regression] ICE/segfault on legal code
> Right. The member 'value' of any type plugged in for C has to be 'static const'
No, it can also be an enum. (when you call "markus --pedantic")
> God only knows what this code is good for, although I'd guess nothing at all. :-)
This is code from boost::mpl.
If you are interested in how useful this kind of code is, look
at http:://boost.org and at http://daixtrose.sf.net
Markus