This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10558: [3.3 regression] Segfault on illegal use of template without template args
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, smueller at umich dot edu
- Date: 30 Apr 2003 01:11:21 -0000
- Subject: Re: c++/10558: [3.3 regression] Segfault on illegal use of template without template args
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, smueller at umich dot edu, gcc-gnats at gcc dot gnu dot org
Old Synopsis: ICE in c_expand_expr in c-common.c:3715
New Synopsis: [3.3 regression] Segfault on illegal use of template without template args
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 30 01:11:21 2003
State-Changed-Why:
Confirmed. Though the error happens even earlier (in a
tree check function) if checking is enabled. Here's a
smaller testcase:
--------------------------
namespace NS {
template <typename> struct C {
template <typename U> C (U);
};
struct X {
X(C<int>);
};
}
NS::X x(NS::C);
--------------------------
It crashes 3.3 as follows:
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
x.cc:11: internal compiler error: Segmentation fault
Please submit a full bug report,
3.4 gives a useful error message on this as well as the
original testcase. 2.95 crashes on this one, but it doesn't
crash on the original testcase, so this is a 3.3 (not 3.4)
regression.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10558