c++/9778: [3.4 regression] ICE with sizeof(expr) in non-type template arg

Steven Bosscher s.bosscher@student.tudelft.nl
Thu Feb 20 18:43:00 GMT 2003


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




More information about the Gcc-bugs mailing list