This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11509] New: [3.4 regression] ICE with expression with static member in template arg
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2003 23:01:48 -0000
- Subject: [Bug c++/11509] New: [3.4 regression] ICE with expression with static member in template arg
- 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=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.