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/segfault on legal code


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.


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