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]

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



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