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/segfault on legal code
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2003 14:49:11 -0000
- Subject: [Bug c++/11489] [3.4 Regression] ICE/segfault on legal code
- 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 bangerth at dealii dot org 2003-07-10 14:49 -------
Confirmed again. Here's a smaller testcase:
-----------------------
template <bool> struct S {};
template <typename C>
struct X {
typedef S<static_cast<bool>(C::value)> T;
};
------------------------
The ICE goes away when one removes the static_cast.
Regarding the state of gcc: First, you are testing mainline, not a released
version. We just closed the development phase, so some instability needs
to be expected at this point in time. Second, about what Andrew said: it's
not quite true that gcc gas no decent testsuite. For one, the testsuite has
>20,000 testcases. Secondly, several people build their (large) C++
packages every night with present CVS versions of gcc. But if you asked
developers to do that for themselves before check-in, it would take hours
or days (my nightly builds, for example, take 2-3 hours). There needs to be
a balance between the effort to develop gcc and our willingness to accept
that once in a while something gets broken.
W.