[Bug c++/11509] New: [3.4 regression] ICE with expression with static member in template arg
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 12 23:01: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=11509
Summary: [3.4 regression] ICE with expression with static member
in template arg
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
This is reduced from 10316, but it was too simple to be fun (less than 3 minutes
to cut down :-):
-----------------------------
template <class> struct A { static const int n = 1; } ;
template <int> struct B;
template <class S>
struct restype_order {
static const int s = A<S>::n;
typedef typename B<(s > 0)>::t t;
};
-----------------------------
This ICEs not with present mainline:
tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
It doesn't ICE with 3.3.0, but I don't have a 3.3 branch snapshot on this
machine, so can't test whether this bug also is on the branch. It's a regression
in any case. The bug was introduced into mainline after 20030520.
W.
More information about the Gcc-bugs
mailing list