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++/11489] [3.4 Regression] ICE on typecast of template-argument-derived value as template argument


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


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