This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9778: [3.4 regression] ICE with sizeof(expr) in non-typetemplate arg
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org,bangerth at ticam dot utexas dot edu, gcc-prs at gcc dot gnu dot org
- Date: Thu, 20 Feb 2003 19:43:26 +0100
- Subject: Re: c++/9778: [3.4 regression] ICE with sizeof(expr) in non-typetemplate arg
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9778
devphil says:
: Search converges between 2003-01-16-trunk (#103) and 2003-01-17-trunk
(#104).
Line-numbered input is:
========================================
1 namespace NS {
2 template <int N> void foo ();
3 }
4
5 template <int N> struct X {
6 int m;
7 int g () {
8 NS::foo<sizeof(m)>();
9 }
10 };
11
12 template class X<2>;
13
========================================
Diagnostic output follows, from the last compiler tested:
input: In member function `int X<N>::g() [with int N = 2]':
input:12: instantiated from here
input:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Compiler output follows, from the last compiler tested:
.file "input"
Greetz
Steven