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]

[Bug c++/28316] New: ICE in in instantiate_decl, at cp/pt.c:11645


[forwarded from http://bugs.debian.org/355909]

  Matthias

rechecked with 4.1.2 20060630


template <typename T>
struct foo
{
  static const int i;
};

template <typename T>
const int foo<float>::i = 42;

int
main ()
{
  return foo<float>::i;
}

$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:13:   instantiated from 'const int foo<float>::i'
foo.cc:13:   instantiated from here
foo.cc:13: internal compiler error: in instantiate_decl, at cp/pt.c:11645
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in in instantiate_decl, at cp/pt.c:11645
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28316


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